Removing un-needed frameElement check as discussed in #8018. Fixes #8108.

This commit is contained in:
jeresig 2011-04-12 00:29:52 -04:00
parent 0d755dff13
commit 7bfb6a7dd3

View file

@ -24,17 +24,6 @@ jQuery.event = {
return;
}
// TODO :: Use a try/catch until it's safe to pull this out (likely 1.6)
// Minor release fix for bug #8018
try {
// For whatever reason, IE has trouble passing the window object
// around, causing it to be cloned in the process
if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
elem = window;
}
}
catch ( e ) {}
if ( handler === false ) {
handler = returnFalse;
} else if ( !handler ) {