sdk/src/Platform/web/index.js
function (err) {
                if (_.isNull(err)) {
                    // Call complete with all the args except for err
                    complete.apply(null, Array.prototype.slice.call(arguments, 1));
                } else {
                    error(err);
                }
            }
function (err) {
                if (_.isNull(err)) {
                    // Call complete with all the args except for err
                    complete.apply(null, Array.prototype.slice.call(arguments, 1));
                } else {
                    error(err);
                }
            }
function ( err ) { if ( _ . isNull ( err ) ) { // Call complete with all the args except for err complete . apply ( null , Array . prototype . slice . call ( arguments , 1 ) ) ; } else { error ( err ) ; } }
Add a callback to the args which will call the appropriate promise handlers
Add a callback to the args which will call the appropriate promise handlers