Fix bug with the readyWait DOM ready addition.
This commit is contained in:
parent
dc8491defe
commit
1ac3713e7f
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue