Fixes #8712. Bubble custom events to the window when they are triggered. Ride that, Cowboy!
This commit is contained in:
parent
879be3d812
commit
b7dd8404c5
2 changed files with 8 additions and 3 deletions
|
@ -359,7 +359,8 @@ jQuery.event = {
|
|||
}
|
||||
} catch ( ieError1 ) {}
|
||||
|
||||
cur = cur.parentNode || cur.ownerDocument;
|
||||
// Bubble up to document, then to window
|
||||
cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window;
|
||||
} while ( cur && !event.isPropagationStopped() );
|
||||
|
||||
// If nobody prevented the default action, do it now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue