From a151295654ae3c07610364c78f99482eed86bb0a Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Fri, 24 Mar 2017 15:07:44 -0400 Subject: [PATCH] fix(core): make properties enumerable --- src/@ionic-native/core/decorators.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index 797b9382d..e0983440c 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -259,6 +259,7 @@ export function CordovaInstance(opts: any = {}) { */ export function CordovaProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: () => { if (checkAvailability(target, key) === true) { return getPlugin(target.constructor.getPluginRef())[key]; @@ -282,6 +283,7 @@ export function CordovaProperty(target: any, key: string) { */ export function InstanceProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: function(){ return this._objectInstance[key]; },