chore(): fix plugin callback order comment

This commit is contained in:
Tim Lancina 2016-02-06 16:30:10 -06:00
parent 0d57ef8852
commit 6fcba5cc3f

View File

@ -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') {