]> source.dussan.org Git - jquery.git/commitdiff
Removed NFE to make old Safari happy and avoid leaks in IE (as per David Murdoch...
authorjaubourg <aubourg.julian@gmail.com>
Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)
committerjaubourg <aubourg.julian@gmail.com>
Tue, 21 Dec 2010 16:04:07 +0000 (17:04 +0100)
src/core.js

index 39d49743c0c9436c35834c730c70c39487ed3db1..4c717e3b9f50338a0411c4d00782e530d7f922bf 100644 (file)
@@ -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 );
                                                        }