tweaks to make contact plugin work better

This commit is contained in:
Ibrahim Hadeed
2016-06-10 01:10:50 -04:00
parent 264c85cfba
commit 411e6fc2a1
3 changed files with 60 additions and 143 deletions
+2 -2
View File
@@ -323,13 +323,13 @@ export function CordovaProperty(target: Function, key: string, descriptor: Typed
* @param descriptor
* @constructor
*/
export function InstanceProperty(target: Function, key: string, descriptor: TypedPropertyDescriptor<any>) {
export function InstanceProperty(target: any, key: string, descriptor: TypedPropertyDescriptor<any>) {
descriptor.get = function() {
return this._objectInstance[key];
};
descriptor.set = function(...args: any[]) {
return this._objectInstance[key] = args[0];
this._objectInstance[key] = args[0];
};
return descriptor;