diff options
author | jaubourg <j@ubourg.net> | 2011-11-09 01:02:29 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-11-09 01:02:29 +0100 |
commit | 2a9f0681dee3a6421bafd2fbc4451c9fe364b6ca (patch) | |
tree | 3ce24d063a62f433d2fd6b383e7062ac1665f152 /src | |
parent | c3600e261ba8d9394fe505ef5a0611b6d6b18a8d (diff) | |
download | jquery-2a9f0681dee3a6421bafd2fbc4451c9fe364b6ca.tar.gz jquery-2a9f0681dee3a6421bafd2fbc4451c9fe364b6ca.zip |
Have Deferred.always return the object onto which it is currently attached to enable true chainability. Fixes #10723. Unit tests added.
Diffstat (limited to 'src')
-rw-r--r-- | src/deferred.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deferred.js b/src/deferred.js index 9444f895f..c97084b70 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -33,7 +33,8 @@ jQuery.extend({ return this; }, always: function() { - return deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments ); + deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments ); + return this; }, pipe: function( fnDone, fnFail, fnProgress ) { return jQuery.Deferred(function( newDefer ) { |