Skip to content

Commit

Permalink
Fix bug with the readyWait DOM ready addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Sep 21, 2010
1 parent dc8491d commit 1ac3713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ jQuery.extend({
} }


// Make sure that the DOM is not already loaded // 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). // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if ( !document.body ) { if ( !document.body ) {
return setTimeout( jQuery.ready, 13 ); return setTimeout( jQuery.ready, 13 );
Expand Down

0 comments on commit 1ac3713

Please sign in to comment.