Fixed == change in ready.
authorJohn Resig <jeresig@gmail.com>
Thu, 8 Oct 2009 18:13:07 +0000 (18:13 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 8 Oct 2009 18:13:07 +0000 (18:13 +0000)
src/event.js

index 0f976a0..69a1043 100644 (file)
@@ -830,7 +830,8 @@ function bindReady() {
 
                // If IE and not an iframe
                // continually check to see if the document is ready
-               if ( document.documentElement.doScroll && window === window.top ) (function() {
+               // NOTE: DO NOT CHANGE TO ===, FAILS IN IE.
+               if ( document.documentElement.doScroll && window == window.top ) (function() {
                        if ( jQuery.isReady ) {
                                return;
                        }