mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
A temporary workaround for #8018 that avoids any chance of compatibility-breaking changes until a proper fix can be landed in 1.6.
This commit is contained in:
parent
4b91b918a3
commit
752db8fffe
13
src/event.js
13
src/event.js
@ -23,11 +23,16 @@ jQuery.event = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For whatever reason, IE has trouble passing the window object
|
// TODO :: Use a try/catch until it's safe to pull this out (likely 1.6)
|
||||||
// around, causing it to be cloned in the process
|
// Minor release fix for bug #8018
|
||||||
if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
|
try {
|
||||||
elem = window;
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user