From: John Resig Date: Tue, 21 Sep 2010 20:26:36 +0000 (-0400) Subject: Fix bug with the readyWait DOM ready addition. X-Git-Tag: 1.4.3rc1~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1ac3713e7fa187838b04290ada9e4fc56e01f145;p=jquery.git Fix bug with the readyWait DOM ready addition. --- diff --git a/src/core.js b/src/core.js index 2b00627db..53d69ca86 100644 --- a/src/core.js +++ b/src/core.js @@ -373,7 +373,7 @@ jQuery.extend({ } // Make sure that the DOM is not already loaded - if ( !jQuery.readyWait && !jQuery.isReady ) { + if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) { // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready, 13 );