Changelog
1.4.0
when.resolve(value)
creates a resolved promise for value
. See API docs.deferred.resolve
and deferred.reject
now return a promise for the fulfilled or rejected value.deferred.resolve(promise)
- when promise
resolves or rejects, so will deferred
.Changelog
1.3.0
when()
or .then()
) return what you intend, keeping in mind that not returning something is equivalent to returning undefined
.jQuery.get()
, which seem to reject with themselves as the rejection value. See issue #41 for more information and discussion. Thanks to @KidkArolis for raising the issue.Changelog
1.2.0
promise.otherwise(errback)
as a shortcut for promise.then(null, errback)
. See discussion here and here. Thanks to @jonnyreeves for suggesting the name "otherwise".