Add catch to promise objects #2102
Comments
|
I can see us creating |
|
of course, this would need to be done with |
|
Giant +1 on this. Since these Promises aren't based on a prototype, it's much easier for this to be supported internally rather than having to do something like wrap the constructor and decorate the returned promise. |
|
I updated the title for accuracy. Suggested implementation: "catch": function( fn ) {
return promise.then( null, fn );
} |
|
Sounds like a blocker to me |
timmywil
added a commit
to timmywil/jquery
that referenced
this issue
Jul 6, 2015
timmywil
added a commit
to timmywil/jquery
that referenced
this issue
Jul 6, 2015
timmywil
added a commit
that referenced
this issue
Jul 6, 2015
Closed
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This relates to #1722 but a far simpler request... given that the
.thenmethod matches the Promise spec (with the extra progress parameter), it would be nice that there be a compatible.catchmethod... (per @dmethvin) this could call and return.then(null,fn)as a passthrough.The text was updated successfully, but these errors were encountered: