From 2fec5dbecd3dc6d2acfcb4df28d29638637ac579 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Tue, 21 Dec 2010 00:56:00 +0100 Subject: [PATCH] Fixed a loop that only worked in webkit. --- src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.js b/src/core.js index 79ea5ce..d141c4d 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 ); } -- 1.7.10.4