mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
fix for #4268. bind now works with iframe windows. thanks tr4nslator
This commit is contained in:
parent
3715d73f79
commit
f5690995dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user