diff options
author | jaubourg <aubourg.julian@gmail.com> | 2010-12-21 17:04:07 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2010-12-31 03:56:11 +0100 |
commit | 43828b7482d33e4ee96f482779b98528b7266ea2 (patch) | |
tree | 08a2d2476d80262bb577ba41f954e14ec31214f1 /src | |
parent | fef0f63526df8c4e186780c742fbcd717424581b (diff) | |
download | jquery-43828b7482d33e4ee96f482779b98528b7266ea2.tar.gz jquery-43828b7482d33e4ee96f482779b98528b7266ea2.zip |
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.js b/src/core.js index d141c4d69..34d8094a0 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 ); } |