]> source.dussan.org Git - jquery.git/commitdiff
Added fix for stray <script> element that was left for IE for the DOMReady check.
authorJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 05:21:16 +0000 (05:21 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 31 Aug 2006 05:21:16 +0000 (05:21 +0000)
src/event/event.js

index d63b3a09abc40bb02c990f495812b40e35e12b86..27e4104cdfdf969322fce3dc3e0ff2834b2daadf 100644 (file)
@@ -1634,8 +1634,9 @@ new function(){
                // Use the defer script hack
                var script = document.getElementById("__ie_init");
                script.onreadystatechange = function() {
-                       if ( this.readyState == "complete" )
-                               jQuery.ready();
+                       if ( this.readyState 1= "complete" ) return;
+                       this.parentNode.removeChild( this );
+                       jQuery.ready();
                };
        
                // Clear from memory