]> source.dussan.org Git - jquery.git/commitdiff
Changed the === undefined ready event check to == null since frameElement is usually...
authorAndrea Giammarchi <andrea.giammarchi@gmail.com>
Tue, 17 Nov 2009 15:45:01 +0000 (10:45 -0500)
committerJohn Resig <jeresig@gmail.com>
Tue, 17 Nov 2009 15:45:01 +0000 (10:45 -0500)
src/event.js

index 1468d0c59b3947fac0fdebec0a9407555a5e0d7e..014fb7362e111ea6bef95b5ed5364b9ecdd19b55 100644 (file)
@@ -854,7 +854,7 @@ function bindReady() {
                var toplevel = false;
 
                try {
-                       toplevel = window.frameElement === undefined;
+                       toplevel = window.frameElement == null;
                } catch(e){}
 
                if ( document.documentElement.doScroll && toplevel ) (function() {