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:
Andrea Giammarchi 2009-11-17 10:45:01 -05:00 committed by John Resig
parent 0a7232cc39
commit 3a23a5c17d

View file

@ -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() {