diff options
author | jaubourg <j@ubourg.net> | 2011-04-08 17:35:08 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-04-08 17:35:08 +0200 |
commit | 7a1c6beab0d92b1419050eb468773bf1138254a6 (patch) | |
tree | 75891da7c33843b8a1be56af7a8b8df27872b707 /src/deferred.js | |
parent | 98d83ef85f41fefb40a14eec24c6804c088bbeeb (diff) | |
download | jquery-7a1c6beab0d92b1419050eb468773bf1138254a6.tar.gz jquery-7a1c6beab0d92b1419050eb468773bf1138254a6.zip |
Renames chain as pipe.
Diffstat (limited to 'src/deferred.js')
-rw-r--r-- | src/deferred.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/deferred.js b/src/deferred.js index feaccaef3..a25bdb7a5 100644 --- a/src/deferred.js +++ b/src/deferred.js @@ -1,7 +1,7 @@ (function( jQuery ) { var // Promise methods - promiseMethods = "done fail isResolved isRejected promise then always chain".split( " " ), + promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ), // Static reference to slice sliceDeferred = [].slice; @@ -107,8 +107,7 @@ jQuery.extend({ rejectWith: failDeferred.resolveWith, reject: failDeferred.resolve, isRejected: failDeferred.isResolved, - // Chain - chain: function( fnDone, fnFail ) { + pipe: function( fnDone, fnFail ) { return jQuery.Deferred(function( newDefer ) { jQuery.each( { done: [ fnDone, "resolve" ], |