diff options
author | jaubourg <aubourg.julian@gmail.com> | 2010-12-21 00:56:00 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2010-12-31 04:02:33 +0100 |
commit | 2fec5dbecd3dc6d2acfcb4df28d29638637ac579 (patch) | |
tree | 131f6c377cbffd2f08c955e929b1532a7e712b6b /src/core.js | |
parent | 39d96ab8c55a044deccaff0ef8bc2c5813656368 (diff) | |
download | jquery-2fec5dbecd3dc6d2acfcb4df28d29638637ac579.tar.gz jquery-2fec5dbecd3dc6d2acfcb4df28d29638637ac579.zip |
Fixed a loop that only worked in webkit.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js index 79ea5cebc..d141c4d69 100644 --- a/src/core.js +++ b/src/core.js @@ -800,7 +800,7 @@ jQuery.extend({ deferred = { // then( f1, f2, ...) - then: function() { + then: function then() { if ( ! cancelled ) { @@ -820,7 +820,7 @@ jQuery.extend({ elem = args[ i ]; type = jQuery.type( elem ); if ( type === "array" ) { - deferred.then.apply( deferred , elem ); + then.apply( this , elem ); } else if ( type === "function" ) { callbacks.push( elem ); } |