lib/class.js
function ( onRejected ) {
		if ( onRejected && typeof onRejected !== 'function' ) throw new TypeError("onFulfilled is not a function");

		var promise = this,
			handler = new Promise.Handler({
				onRejected: onRejected,
			});

		// Catch on entire promise chain
		while( promise ) {
			handler.handle( promise );
			promise = promise.parent;
		}

		return this;
	}
function ( onRejected ) {
		if ( onRejected && typeof onRejected !== 'function' ) throw new TypeError("onFulfilled is not a function");

		var promise = this,
			handler = new Promise.Handler({
				onRejected: onRejected,
			});

		// Catch on entire promise chain
		while( promise ) {
			handler.handle( promise );
			promise = promise.parent;
		}

		return this;
	}
function ( onRejected ) { if ( onRejected && typeof onRejected !== 'function' ) throw new TypeError ( "onFulfilled is not a function" ) ; var promise = this , handler = new Promise . Handler ( { onRejected : onRejected , } ) ; // Catch on entire promise chain while ( promise ) { handler . handle ( promise ) ; promise = promise . parent ; } return this ; }
OUTER API METHODS
OUTER API METHODS