]> source.dussan.org Git - jquery.git/commitdiff
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 08deb8b2985e13579a55be98e8097c2f68199576..e46e1086c8dde2942c6114c0b39067a9154c91f7 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 {