mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix for #181
This commit is contained in:
parent
f12df1df85
commit
32816eff59
@ -1621,11 +1621,12 @@ new function(){
|
||||
|
||||
// Use the defer script hack
|
||||
var script = document.getElementById("__ie_init");
|
||||
script.onreadystatechange = function() {
|
||||
if ( this.readyState != "complete" ) return;
|
||||
this.parentNode.removeChild( this );
|
||||
jQuery.ready();
|
||||
};
|
||||
if (script) // script does not exist if jQuery is loaded dynamically
|
||||
script.onreadystatechange = function() {
|
||||
if ( this.readyState != "complete" ) return;
|
||||
this.parentNode.removeChild( this );
|
||||
jQuery.ready();
|
||||
};
|
||||
|
||||
// Clear from memory
|
||||
script = null;
|
||||
|
Loading…
Reference in New Issue
Block a user