mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 19:49:11 -05:00
Fixed the case where global events weren't being triggered on window and document.
This commit is contained in:
@@ -130,7 +130,7 @@ jQuery.event = {
|
||||
if ( !element ) {
|
||||
// Only trigger if we've ever bound an event for it
|
||||
if ( this.global[type] )
|
||||
jQuery("*").trigger(type, data);
|
||||
jQuery("*").add([window, document]).trigger(type, data);
|
||||
|
||||
// Handle triggering a single element
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user