diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2006-11-15 17:13:07 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2006-11-15 17:13:07 +0000 |
commit | 32816eff59095841e078cf5a7bf637ea64c4c801 (patch) | |
tree | 321abec517eea02cac8fa16c40960c28fd77939d /src/event | |
parent | f12df1df853d9ddabe45164f03c811ba01b6bfd2 (diff) | |
download | jquery-32816eff59095841e078cf5a7bf637ea64c4c801.tar.gz jquery-32816eff59095841e078cf5a7bf637ea64c4c801.zip |
Fix for #181
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/event.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/event/event.js b/src/event/event.js index 6d8898369..19bb4f6a3 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -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; |