Made the IE frameElement check more explicit. Fixes #3880.
authorJohn Resig <jeresig@gmail.com>
Sat, 17 Jan 2009 22:04:23 +0000 (22:04 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 17 Jan 2009 22:04:23 +0000 (22:04 +0000)
src/event.js

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