lib/Promise.js
function (error) {
    // update status
    me.resolved = false;
    me.rejected = true;
    me.pending = false;

    _onFail.forEach(function (fn) {
      fn(error);
    });

    _process = function (onSuccess, onFail) {
      onFail(error);
    };

    _resolve = _reject = function () { }

    return me;
  }
function (error) {
    // update status
    me.resolved = false;
    me.rejected = true;
    me.pending = false;

    _onFail.forEach(function (fn) {
      fn(error);
    });

    _process = function (onSuccess, onFail) {
      onFail(error);
    };

    _resolve = _reject = function () { }

    return me;
  }
function ( error ) { // update status me . resolved = false ; me . rejected = true ; me . pending = false ; _onFail . forEach ( function ( fn ) { fn ( error ) ; } ) ; _process = function ( onSuccess , onFail ) { onFail ( error ) ; } ; _resolve = _reject = function ( ) { } return me ; }
Reject the promise
@param {Error} error
@type {Function}
Reject the promise