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 3a23a5c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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.