]> source.dussan.org Git - jquery.git/commitdiff
fix for #4268. bind now works with iframe windows. thanks tr4nslator
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 22 Apr 2009 04:18:53 +0000 (04:18 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 22 Apr 2009 04:18:53 +0000 (04:18 +0000)
src/event.js

index 4127fa8f19da1f615a04cfedb303af1b55e231ee..7fa58ec8d2649f1a3629d54b8a0a6d1dffd8fe86 100644 (file)
@@ -13,7 +13,7 @@ jQuery.event = {
 
                // For whatever reason, IE has trouble passing the window object
                // around, causing it to be cloned in the process
-               if ( elem.setInterval && elem != window )
+               if ( elem.setInterval && ( elem != window && !elem.frameElement ) )
                        elem = window;
 
                // Make sure that the function being executed has a unique ID