Added a fix, suggested by Diego, for IE firing the ready event too late. Fixes bug #3988.

This commit is contained in:
John Resig 2009-01-28 22:38:00 +00:00
parent d1a34f7908
commit ce00f88ae2

View file

@ -637,7 +637,7 @@ function bindReady(){
// If IE and not an iframe // If IE and not an iframe
// continually check to see if the document is ready // continually check to see if the document is ready
if ( document.documentElement.doScroll && typeof window.frameElement === "undefined" ) (function(){ if ( document.documentElement.doScroll && window == window.top ) (function(){
if ( jQuery.isReady ) return; if ( jQuery.isReady ) return;
try { try {