Skip to content
Permalink
Browse files
Fixed the case where global events weren't being triggered on window …
…and document.
  • Loading branch information
jeresig committed Aug 22, 2007
1 parent f2f399d commit 96f2d0d00ba58f6b23dc5658e6c747526e9254d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event/event.js
@@ -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 {

0 comments on commit 96f2d0d

Please sign in to comment.