Commit 3a23a5c1 authored by Andrea Giammarchi's avatar Andrea Giammarchi Committed by John Resig

Changed the === undefined ready event check to == null since frameElement is...

Changed the === undefined ready event check to == null since frameElement is usually null and was skipping the normal line of checks.
parent 0a7232cc
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment