]> source.dussan.org Git - jquery.git/commitdiff
Removing un-needed frameElement check as discussed in #8018. Fixes #8108.
authorjeresig <jeresig@gmail.com>
Tue, 12 Apr 2011 04:29:52 +0000 (00:29 -0400)
committerjeresig <jeresig@gmail.com>
Tue, 12 Apr 2011 04:29:52 +0000 (00:29 -0400)
src/event.js

index 1d923627998699348e67ee07ce3d30a99c1e388c..7d5a1097b82d8db0f800bf2fa35252d802dab706 100644 (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 ) {