Commit 752db8ff authored by Alex Sexton's avatar Alex Sexton Committed by Colin Snover

A temporary workaround for #8018 that avoids any chance of...

A temporary workaround for #8018 that avoids any chance of compatibility-breaking changes until a proper fix can be landed in 1.6.
parent 4b91b918
...@@ -23,11 +23,16 @@ jQuery.event = { ...@@ -23,11 +23,16 @@ 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 // 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 ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) { if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
elem = window; elem = window;
} }
}
catch ( e ) {}
if ( handler === false ) { if ( handler === false ) {
handler = returnFalse; handler = returnFalse;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment