Commit bf71575b authored by Rich Dougherty's avatar Rich Dougherty Committed by John Resig

Land Rich's fix for not using window.top to do frame detection. Fixes #4787.

parent c4c820ef
...@@ -849,10 +849,15 @@ function bindReady() { ...@@ -849,10 +849,15 @@ function bindReady() {
} }
}); });
// If IE and not an iframe // If IE and not a frame
// continually check to see if the document is ready // continually check to see if the document is ready
// NOTE: DO NOT CHANGE TO ===, FAILS IN IE. var toplevel = false;
if ( document.documentElement.doScroll && window == window.top ) (function() {
try {
toplevel = window.frameElement === undefined;
} catch(e){}
if ( document.documentElement.doScroll && toplevel ) (function() {
if ( jQuery.isReady ) { if ( jQuery.isReady ) {
return; return;
} }
......
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