Fixes #8712. Bubble custom events to the window when they are triggered. Ride that, Cowboy!

This commit is contained in:
Dave Methvin 2011-04-06 22:11:58 -04:00
parent 879be3d812
commit b7dd8404c5
2 changed files with 8 additions and 3 deletions

View file

@ -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