From 43828b7482d33e4ee96f482779b98528b7266ea2 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Tue, 21 Dec 2010 17:04:07 +0100 Subject: [PATCH] Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning). --- src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 1.7.10.4