]> source.dussan.org Git - jquery.git/commitdiff
Changed window.frameElement to window == top because of some access denied errors...
authorDavid Serduke <davidserduke@gmail.com>
Sun, 16 Dec 2007 10:33:38 +0000 (10:33 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Sun, 16 Dec 2007 10:33:38 +0000 (10:33 +0000)
src/event.js

index ccbfd2ad4b6feec643f21992dfe29a2d5525c332..0ccbf5d31e913122b456fad3612649d670d2294e 100644 (file)
@@ -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/