mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Changed window.frameElement to window == top because of some access denied errors when the iframe wasn't same origin.
This commit is contained in:
parent
97e98591aa
commit
859aa6c9df
@ -332,7 +332,7 @@ jQuery.event = {
|
||||
|
||||
// If Safari or IE is used
|
||||
// Continually check to see if the document is ready
|
||||
if ((jQuery.browser.msie && !window.frameElement) || jQuery.browser.safari ) (function(){
|
||||
if ((jQuery.browser.msie && window == top) || jQuery.browser.safari ) (function(){
|
||||
try {
|
||||
// If IE is used, use the trick by Diego Perini
|
||||
// http://javascript.nwbox.com/IEContentLoaded/
|
||||
|
Loading…
Reference in New Issue
Block a user