mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
fix for #4268. bind now works with iframe windows. thanks tr4nslator
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user