From 6fcba5cc3fb572e5e1c54cb3e7de39313d7ca7b5 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Sat, 6 Feb 2016 16:30:10 -0600 Subject: [PATCH] chore(): fix plugin callback order comment --- src/plugins/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index edc804344..09c251f04 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -38,7 +38,7 @@ function callCordovaPlugin(pluginObj:any, methodName:string, args:any[], opts:an // 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); } else if(typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') {