fix for #4268. bind now works with iframe windows. thanks tr4nslator

This commit is contained in:
Brandon Aaron 2009-04-22 04:18:53 +00:00
parent 3715d73f79
commit f5690995dd

View File

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