]> source.dussan.org Git - jquery.git/commitdiff
Fix bug with the readyWait DOM ready addition.
authorJohn Resig <jeresig@gmail.com>
Tue, 21 Sep 2010 20:26:36 +0000 (16:26 -0400)
committerJohn Resig <jeresig@gmail.com>
Tue, 21 Sep 2010 20:26:36 +0000 (16:26 -0400)
src/core.js

index 2b00627dbee3af23d20afcf838baf78c8d29c07b..53d69ca86022a8bc2d32adf7707c1da2dff78923 100644 (file)
@@ -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 );