amercier/promise-window

View on GitHub
src/promise.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Promises/A+ [spec][1]
 *
 * [1]: http://promises-aplus.github.io/promises-spec/
 *
 * @class Promise
 * @constructor
 */

/**
 * Access the current or eventual value or reason
 *
 * @method then
 * @param {Function} onFulfilled Function called after promise is fulfilled
 * @param {Object} onFulfilled.value Fullfilled value
 * @param {Function} onRejected Function called after promise is rejected
 * @param {Object} onRejected.reason Reason of rejection
 * @returns {Promise}
 */