diff options
author | jaubourg <aubourg.julian@gmail.com> | 2010-12-21 17:04:07 +0100 |
---|---|---|
committer | jaubourg <aubourg.julian@gmail.com> | 2010-12-21 17:04:07 +0100 |
commit | c810c62a67ca91785b214ce54950a1fc12592ef1 (patch) | |
tree | c2ed068320ce897983e810fe53e75417dc64b1a9 | |
parent | 1db2f02cc78b10bd638d70457645e1daa5c01344 (diff) | |
download | jquery-c810c62a67ca91785b214ce54950a1fc12592ef1.tar.gz jquery-c810c62a67ca91785b214ce54950a1fc12592ef1.zip |
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch's warning).
-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 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 ); } |