Added fix for stray <script> element that was left for IE for the DOMReady check.

This commit is contained in:
John Resig 2006-08-31 05:21:16 +00:00
parent 45a3c06e8f
commit e23c047e78

View 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