From: John Resig Date: Mon, 9 Nov 2009 12:30:33 +0000 (+0100) Subject: Backing out commit 81bfd9b870f658ce00eec48ea48a84d69c20bf05, read the ticket incorrec... X-Git-Tag: 1.4a1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=24e18d4cae4a1cb1a77323fd2e99300508e55642;p=jquery.git Backing out commit 81bfd9b870f658ce00eec48ea48a84d69c20bf05, 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. --- diff --git a/src/event.js b/src/event.js index 055de724d..1b4c539b9 100644 --- a/src/event.js +++ b/src/event.js @@ -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(); }