From fe87b68ccc9f9a11f5665fb8abd5363f8bde40ad Mon Sep 17 00:00:00 2001 From: Paxton Hare Date: Thu, 23 Aug 2018 09:40:00 -0400 Subject: [PATCH] chore(): fix CordovaInstanceProperty decorator (#2655) This manifests in many plugins just not quite working right. --- src/@ionic-native/core/decorators/instance-property.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@ionic-native/core/decorators/instance-property.ts b/src/@ionic-native/core/decorators/instance-property.ts index fb24852b..6f02f7b8 100644 --- a/src/@ionic-native/core/decorators/instance-property.ts +++ b/src/@ionic-native/core/decorators/instance-property.ts @@ -6,7 +6,7 @@ export function instancePropertyGet(pluginObj: any, key: string) { } export function instancePropertySet(pluginObj: any, key: string, value: any) { - if (pluginObj._objectInstance && pluginObj._objectInstance[key]) { + if (pluginObj._objectInstance) { pluginObj._objectInstance[key] = value; } }