Skip to content
Permalink
Browse files

Changed the === undefined ready event check to == null since frameEle…

…ment is usually null and was skipping the normal line of checks.
  • Loading branch information
WebReflection authored and jeresig committed Nov 17, 2009
1 parent 0a7232c commit 3a23a5c17dd0522da06db8f36890f134f9004de6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() {

0 comments on commit 3a23a5c

Please sign in to comment.
You can’t perform that action at this time.