From 4b5a680f776ee2582e2c1f85b7b0cd9a95254dc3 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 8 Oct 2009 18:13:07 +0000 Subject: [PATCH] Fixed == change in ready. --- src/event.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index 0f976a06..69a10435 100644 --- a/src/event.js +++ b/src/event.js @@ -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; }