Skip to content

Commit

Permalink
Add promise.isFulfilled, isRejected, isResolved
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jan 19, 2012
1 parent 65687f3 commit b831ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
@@ -1,5 +1,10 @@
<!-- vim:ts=4:sts=4:sw=4:et:tw=60 -->

## Next minor

- Added ``isFulfilled``, ``isRejected``, and ``isResolved``
to the promise prototype.

## 0.8.2

- Deprecated ``ref`` in favor of ``resolve`` as recommended by
Expand Down
1 change: 1 addition & 0 deletions q.js
Expand Up @@ -264,6 +264,7 @@ Promise.prototype.then = function (fulfilled, rejected) {
// Chainable methods
reduce.call(
[
"isResolved", "isFulfilled", "isRejected",
"when", "spread", "send",
"get", "put", "del",
"post", "invoke",
Expand Down

0 comments on commit b831ab7

Please sign in to comment.