Commit 9e83f1b6 authored by John Resig's avatar John Resig

Fix for IE firing document ready too soon (Bug #1320).

parent 7c85d973
...@@ -954,7 +954,7 @@ new function(){ ...@@ -954,7 +954,7 @@ new function(){
// script does not exist if jQuery is loaded dynamically // script does not exist if jQuery is loaded dynamically
if ( script ) if ( script )
script.onreadystatechange = function() { script.onreadystatechange = function() {
if ( this.readyState != "complete" ) return; if ( document.readyState != "complete" ) return;
jQuery.ready(); jQuery.ready();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment