chore(): fix CordovaInstanceProperty decorator (#2655)

This manifests in many plugins just not quite working right.
This commit is contained in:
Paxton Hare 2018-08-23 09:40:00 -04:00 committed by Ibby Hadeed
parent 9e923fa8da
commit fe87b68ccc

View File

@ -6,7 +6,7 @@ export function instancePropertyGet(pluginObj: any, key: string) {
} }
export function instancePropertySet(pluginObj: any, key: string, value: any) { export function instancePropertySet(pluginObj: any, key: string, value: any) {
if (pluginObj._objectInstance && pluginObj._objectInstance[key]) { if (pluginObj._objectInstance) {
pluginObj._objectInstance[key] = value; pluginObj._objectInstance[key] = value;
} }
} }