chore(): update barcodescanner

This commit is contained in:
Tim Lancina
2016-02-07 16:12:13 -06:00
parent 6fcba5cc3f
commit 6688c4d91d
8 changed files with 64 additions and 28 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ function callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject) {
if (opts === void 0) { opts = {}; }
// If the plugin method expects myMethod(success, err, options)
if (opts.callbackOrder == 'reverse') {
// Get those arguments in the order [reject, resolve, ...restOfArgs]
// Get those arguments in the order [resolve, reject, ...restOfArgs]
args.unshift(reject);
args.unshift(resolve);
}