Commit 1ac3713e authored by John Resig's avatar John Resig

Fix bug with the readyWait DOM ready addition.

parent dc8491de
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment