From: jaubourg Date: Tue, 21 Dec 2010 16:04:07 +0000 (+0100) Subject: Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch... X-Git-Tag: 1.5b1~48^2~15^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c810c62a67ca91785b214ce54950a1fc12592ef1;p=jquery.git Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). --- diff --git a/src/core.js b/src/core.js index 39d49743c..4c717e3b9 100644 --- a/src/core.js +++ b/src/core.js @@ -800,7 +800,7 @@ jQuery.extend({ deferred = { // then( f1, f2, ...) - then: function then() { + then: function () { if ( ! cancelled ) { @@ -820,7 +820,7 @@ jQuery.extend({ elem = args[ i ]; type = jQuery.type( elem ); if ( type === "array" ) { - then.apply( this , elem ); + deferred.then.apply( deferred , elem ); } else if ( type === "function" ) { callbacks.push( elem ); }