From 859aa6c9df064ef7ec9d8cc33af59d867fac0b9a Mon Sep 17 00:00:00 2001 From: David Serduke Date: Sun, 16 Dec 2007 10:33:38 +0000 Subject: [PATCH] Changed window.frameElement to window == top because of some access denied errors when the iframe wasn't same origin. --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index ccbfd2ad4..0ccbf5d31 100644 --- a/src/event.js +++ b/src/event.js @@ -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/ -- 2.39.5