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:
John Resig 2009-11-09 13:30:33 +01:00
parent 4fd730dca7
commit 24e18d4cae

View File

@ -838,7 +838,7 @@ function bindReady() {
// maybe late but safe also for iframes
document.attachEvent("onreadystatechange", function() {
// 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 );
jQuery.ready();
}