refactoring

This commit is contained in:
Max Lynch
2015-11-29 19:54:45 -06:00
parent 9d54bfcd0b
commit dfef6dcfe8
42 changed files with 719 additions and 185 deletions
+15 -12
View File
@@ -10,18 +10,21 @@ var plugin_1 = require('./plugin');
var Camera = (function () {
function Camera() {
}
__decorate([
plugin_1.Cordova({
successIndex: 0,
errIndex: 1
})
], Camera, "getPicture");
__decorate([
plugin_1.Cordova({
successIndex: 0,
errIndex: 1
})
], Camera, "cleanup");
Camera.getPicture = function (options) { };
;
Camera.cleanup = function () { };
;
Object.defineProperty(Camera, "getPicture",
__decorate([
plugin_1.Cordova({
// Not sure why this plugin has the success/err come first...
callbackOrder: 'reverse'
})
], Camera, "getPicture", Object.getOwnPropertyDescriptor(Camera, "getPicture")));
Object.defineProperty(Camera, "cleanup",
__decorate([
plugin_1.Cordova()
], Camera, "cleanup", Object.getOwnPropertyDescriptor(Camera, "cleanup")));
Camera = __decorate([
plugin_1.Plugin({
name: 'Camera',