fix @InstanceProperty decorator, duplicate of get is set

This commit is contained in:
Ibrahim Hadeed 2016-06-09 23:12:23 -04:00
parent 0c8bcf8b21
commit 2d36c6b812

View File

@ -328,7 +328,7 @@ export function InstanceProperty(target: Function, key: string, descriptor: Type
return this._objectInstance[key];
};
descriptor.get = function(...args: any[]) {
descriptor.set = function(...args: any[]) {
return this._objectInstance[key] = args[0];
};