Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A temporary workaround for #8018 that avoids any chance of compatibil…

…ity-breaking changes until a proper fix can be landed in 1.6.
  • Loading branch information...
commit 752db8fffeffa796f5cdb5553331436c0a4cc44e 1 parent 4b91b91
@SlexAxton SlexAxton authored csnover committed
Showing with 9 additions and 4 deletions.
  1. +9 −4 src/event.js
View
13 src/event.js
@@ -23,11 +23,16 @@ jQuery.event = {
return;
}
- // 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;
+ // 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;
Please sign in to comment.
Something went wrong with that request. Please try again.