mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Backing out commit 81bfd9b870
, read the ticket incorrectly - and seeing some of the other earlier tickets it's obvious that a more generic solution is needed. Thanks jdalton for the catch.
This commit is contained in:
parent
4fd730dca7
commit
24e18d4cae
@ -838,7 +838,7 @@ function bindReady() {
|
|||||||
// maybe late but safe also for iframes
|
// maybe late but safe also for iframes
|
||||||
document.attachEvent("onreadystatechange", function() {
|
document.attachEvent("onreadystatechange", function() {
|
||||||
// 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.readyState === "complete" && document.body ) {
|
if ( document.readyState === "complete" ) {
|
||||||
document.detachEvent( "onreadystatechange", arguments.callee );
|
document.detachEvent( "onreadystatechange", arguments.callee );
|
||||||
jQuery.ready();
|
jQuery.ready();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user