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-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=43828b7482d33e4ee96f482779b98528b7266ea2 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 d141c4d..34d8094 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 ); }