X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=d141c4d69b45eb39c4696cbb23b75bae083696c1;hb=2fec5dbecd3dc6d2acfcb4df28d29638637ac579;hp=79ea5cebcc1b5baa77077dfbcecb5ea0eb674437;hpb=39d96ab8c55a044deccaff0ef8bc2c5813656368;p=jquery.git diff --git a/src/core.js b/src/core.js index 79ea5ce..d141c4d 100644 --- a/src/core.js +++ b/src/core.js @@ -800,7 +800,7 @@ jQuery.extend({ deferred = { // then( f1, f2, ...) - then: function() { + then: function then() { if ( ! cancelled ) { @@ -820,7 +820,7 @@ jQuery.extend({ elem = args[ i ]; type = jQuery.type( elem ); if ( type === "array" ) { - deferred.then.apply( deferred , elem ); + then.apply( this , elem ); } else if ( type === "function" ) { callbacks.push( elem ); }