From: John Resig Date: Thu, 12 Jul 2007 20:33:05 +0000 (+0000) Subject: Fix for IE firing document ready too soon (Bug #1320). X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=9e83f1b65fa34e97cfd86ba17514d014749360e8;hp=7c85d973bfa8f716e9331423c74d35489236bb4e;p=jquery.git Fix for IE firing document ready too soon (Bug #1320). --- diff --git a/src/event/event.js b/src/event/event.js index 5d8e89a..f7cc993 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -954,7 +954,7 @@ new function(){ // script does not exist if jQuery is loaded dynamically if ( script ) script.onreadystatechange = function() { - if ( this.readyState != "complete" ) return; + if ( document.readyState != "complete" ) return; jQuery.ready(); };