mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 13:35:20 -05:00
Deferred: add .catch handler
Fixes gh-2102
This commit is contained in:
@@ -33,6 +33,9 @@ jQuery.extend({
|
||||
deferred.done( arguments ).fail( arguments );
|
||||
return this;
|
||||
},
|
||||
"catch": function( fn ) {
|
||||
return promise.then( null, fn );
|
||||
},
|
||||
// Keep pipe for back-compat
|
||||
pipe: function( /* fnDone, fnFail, fnProgress */ ) {
|
||||
var fns = arguments;
|
||||
|
||||
Reference in New Issue
Block a user