Merge pull request #207 from driftyco/new-contacts

New contacts
This commit is contained in:
Ibrahim Hadeed
2016-06-10 19:38:17 -04:00
committed by GitHub
3 changed files with 125 additions and 113 deletions
+2 -2
View File
@@ -325,13 +325,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;