Minimal Promises/A+ lib
A Minimal, fully Promises/A+ compliant library.
Promises/A+ spec here: http://promisesaplus.com/
promise()- Created a promise. Can pass an optional
objargument. If passed, promise methods are attached to passed object.
then(onFulfill, onReject)- bind fulfillment/rejection handlers to the promise. Returns a promise object
fulfill(value)- fulfills the promise with the passed value.
For all behaviors, see the spec.