Changed the === undefined ready event check to == null since frameElement is usually null and was skipping the normal line of checks.
This commit is contained in:
parent
0a7232cc39
commit
3a23a5c17d
1 changed files with 1 additions and 1 deletions
|
@ -854,7 +854,7 @@ function bindReady() {
|
||||||
var toplevel = false;
|
var toplevel = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
toplevel = window.frameElement === undefined;
|
toplevel = window.frameElement == null;
|
||||||
} catch(e){}
|
} catch(e){}
|
||||||
|
|
||||||
if ( document.documentElement.doScroll && toplevel ) (function() {
|
if ( document.documentElement.doScroll && toplevel ) (function() {
|
||||||
|
|
Loading…
Reference in a new issue