fix(core): decorators should define enumerable properties

This commit is contained in:
Ibby Hadeed 2017-05-17 11:19:35 -04:00
parent 6416c2544c
commit 22102a7e4a

View File

@ -135,7 +135,8 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) {
return getPromise(() => { }); return getPromise(() => { });
} }
} },
enumerable: true
}; };
}; };
} }
@ -159,7 +160,8 @@ export function CordovaCheck(opts: CordovaCheckOptions = {}) {
} }
return Promise.reject(check && check.error); return Promise.reject(check && check.error);
} }
} },
enumerable: true
}; };
}; };
} }
@ -239,7 +241,8 @@ export function Cordova(opts: CordovaOptions = {}) {
return { return {
value: function(...args: any[]) { value: function(...args: any[]) {
return wrap(this, methodName, opts).apply(this, args); return wrap(this, methodName, opts).apply(this, args);
} },
enumerable: true
}; };
}; };
} }
@ -254,7 +257,8 @@ export function CordovaInstance(opts: any = {}) {
return { return {
value: function(...args: any[]) { value: function(...args: any[]) {
return wrapInstance(this, methodName, opts).apply(this, args); return wrapInstance(this, methodName, opts).apply(this, args);
} },
enumerable: true
}; };
}; };
} }
@ -312,7 +316,8 @@ export function CordovaFunctionOverride(opts: any = {}) {
return { return {
value: function(...args: any[]) { value: function(...args: any[]) {
return overrideFunction(this, methodName, opts); return overrideFunction(this, methodName, opts);
} },
enumerable: true
}; };
}; };
} }
@ -348,7 +353,8 @@ export function CordovaFiniteObservable(opts: CordovaFiniteObservableOptions = {
wrappedSubscription.unsubscribe(); wrappedSubscription.unsubscribe();
}; };
}); });
} },
enumerable: true
}; };
}; };
} }