X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=34d8094a020a2beba873e6233882acaee52f823c;hb=43828b7482d33e4ee96f482779b98528b7266ea2;hp=d141c4d69b45eb39c4696cbb23b75bae083696c1;hpb=fef0f63526df8c4e186780c742fbcd717424581b;p=jquery.git 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 ); }