Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added fix for stray <script> element that was left for IE for the DOM…

…Ready check.
  • Loading branch information...
commit e23c047e786ada99f7f42c1ad1c305eb2394ca7f 1 parent 45a3c06
@jeresig jeresig authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/event/event.js
View
5 src/event/event.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.