Skip to content

Commit

Permalink
fix(core): decorators should define enumerable properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed May 17, 2017
1 parent 6416c25 commit 22102a7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/@ionic-native/core/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export function InstanceCheck(opts: CordovaCheckOptions = {}) {
return getPromise(() => { });

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

0 comments on commit 22102a7

Please sign in to comment.