mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
fix @InstanceProperty decorator, duplicate of get is set
This commit is contained in:
parent
0c8bcf8b21
commit
2d36c6b812
@ -328,7 +328,7 @@ export function InstanceProperty(target: Function, key: string, descriptor: Type
|
|||||||
return this._objectInstance[key];
|
return this._objectInstance[key];
|
||||||
};
|
};
|
||||||
|
|
||||||
descriptor.get = function(...args: any[]) {
|
descriptor.set = function(...args: any[]) {
|
||||||
return this._objectInstance[key] = args[0];
|
return this._objectInstance[key] = args[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user