This commit is contained in:
Max Lynch
2015-11-28 18:36:38 -06:00
parent 5b754390f5
commit 3327fe8f45
10 changed files with 17 additions and 100 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ function Cordova(opts) {
if (opts.promise) {
console.log('TODO: Promise');
}
obj[methodName] = exports.wrap(obj, methodName, opts);
obj[methodName] = exports.wrap(obj, methodName, opts).bind(obj);
};
}
exports.Cordova = Cordova;
+2 -2
View File
@@ -18,8 +18,8 @@ var Toast = (function () {
], Toast, "hide");
__decorate([
plugin_1.Cordova({
successIndex: 0,
errIndex: 1
successIndex: 1,
errIndex: 2
})
], Toast, "showWithOptions");
Toast = __decorate([