diff options
author | jaubourg <j@ubourg.net> | 2011-09-12 17:37:41 +0200 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 15:42:30 -0400 |
commit | 4092e3d2754e3847cd3159edb23184d4cfd4cf03 (patch) | |
tree | 79a0a58644939da906ec750281488beee862a41d /src/core.js | |
parent | 1878885fb7a09b65d95980a9b7dce2df2944e4f9 (diff) | |
download | jquery-4092e3d2754e3847cd3159edb23184d4cfd4cf03.tar.gz jquery-4092e3d2754e3847cd3159edb23184d4cfd4cf03.zip |
$.Callbacks, $.Topic and notify/progress on $.Deferred.
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core.js b/src/core.js index 18cf10235..8d9a94f63 100644 --- a/src/core.js +++ b/src/core.js @@ -258,7 +258,7 @@ jQuery.fn = jQuery.prototype = { jQuery.bindReady(); // Add the callback - readyList.done( fn ); + readyList.add( fn ); return this; }, @@ -413,7 +413,7 @@ jQuery.extend({ } // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); + readyList.fireWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { @@ -427,7 +427,7 @@ jQuery.extend({ return; } - readyList = jQuery._Deferred(); + readyList = jQuery.Callbacks( "once memory" ); // Catch cases where $(document).ready() is called after the // browser event has already occurred. |