Skip to content

Commit

Permalink
Removing un-needed frameElement check as discussed in #8018. Fixes #8…
Browse files Browse the repository at this point in the history
…108.
  • Loading branch information
jeresig committed Apr 12, 2011
1 parent 0d755df commit 7bfb6a7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/event.js
Expand Up @@ -24,17 +24,6 @@ jQuery.event = {
return; 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 ) { if ( handler === false ) {
handler = returnFalse; handler = returnFalse;
} else if ( !handler ) { } else if ( !handler ) {
Expand Down

0 comments on commit 7bfb6a7

Please sign in to comment.