From 24e18d4cae4a1cb1a77323fd2e99300508e55642 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 9 Nov 2009 13:30:33 +0100 Subject: [PATCH] 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. --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5