aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorjaubourg <aubourg.julian@gmail.com>2010-12-21 00:56:00 +0100
committerjaubourg <j@ubourg.net>2010-12-31 04:02:33 +0100
commit2fec5dbecd3dc6d2acfcb4df28d29638637ac579 (patch)
tree131f6c377cbffd2f08c955e929b1532a7e712b6b /src/core.js
parent39d96ab8c55a044deccaff0ef8bc2c5813656368 (diff)
downloadjquery-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.js4
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 );
}