Skip to content
Permalink
Browse files
Changed window.frameElement to window == top because of some access d…
…enied errors when the iframe wasn't same origin.
  • Loading branch information
davids549 committed Dec 16, 2007
1 parent 97e9859 commit 859aa6c9df064ef7ec9d8cc33af59d867fac0b9a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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/

0 comments on commit 859aa6c

Please sign in to comment.