aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaubourg <aubourg.julian@gmail.com>2010-12-21 17:04:07 +0100
committerjaubourg <j@ubourg.net>2010-12-31 04:05:49 +0100
commit5bfbe7eaf6481cfda6f2c790fa070d58e1abc74d (patch)
tree08a2d2476d80262bb577ba41f954e14ec31214f1 /src
parentd5bb001b9a3cbe0753d11f7c20cede83e9c2d775 (diff)
downloadjquery-5bfbe7eaf6481cfda6f2c790fa070d58e1abc74d.tar.gz
jquery-5bfbe7eaf6481cfda6f2c790fa070d58e1abc74d.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.js4
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 );
}