From: jaubourg Date: Mon, 20 Dec 2010 23:56:00 +0000 (+0100) Subject: Fixed a loop that only worked in webkit. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=2fec5dbecd3dc6d2acfcb4df28d29638637ac579 Fixed a loop that only worked in webkit. --- 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 ); }