From 2d36c6b8125cf065c9cb46cac3f4657a3d216e23 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Thu, 9 Jun 2016 23:12:23 -0400 Subject: [PATCH] fix @InstanceProperty decorator, duplicate of get is set --- src/plugins/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index 533217c50..f5b385690 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -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]; };