aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorAndrea Giammarchi <andrea.giammarchi@gmail.com>2009-11-17 10:45:01 -0500
committerJohn Resig <jeresig@gmail.com>2009-11-17 10:45:01 -0500
commit3a23a5c17dd0522da06db8f36890f134f9004de6 (patch)
treeeb8c5575a029dc0cbce88e54c13aee8e55d106a8 /src/event.js
parent0a7232cc39912064de62ee06fd14221b36c93fd8 (diff)
downloadjquery-3a23a5c17dd0522da06db8f36890f134f9004de6.tar.gz
jquery-3a23a5c17dd0522da06db8f36890f134f9004de6.zip
Changed the === undefined ready event check to == null since frameElement is usually null and was skipping the normal line of checks.
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 1468d0c59..014fb7362 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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() {