Fixed the case where global events weren't being triggered on window and document.
This commit is contained in:
parent
f2f399dcd5
commit
96f2d0d00b
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ jQuery.event = {
|
||||||
if ( !element ) {
|
if ( !element ) {
|
||||||
// Only trigger if we've ever bound an event for it
|
// Only trigger if we've ever bound an event for it
|
||||||
if ( this.global[type] )
|
if ( this.global[type] )
|
||||||
jQuery("*").trigger(type, data);
|
jQuery("*").add([window, document]).trigger(type, data);
|
||||||
|
|
||||||
// Handle triggering a single element
|
// Handle triggering a single element
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue