Fixed the case where global events weren't being triggered on window and document.

This commit is contained in:
John Resig 2007-08-22 06:19:47 +00:00
parent f2f399dcd5
commit 96f2d0d00b

View file

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