mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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:
committed by
John Resig
parent
0a7232cc39
commit
3a23a5c17d
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user