diff options
author | John Resig <jeresig@gmail.com> | 2007-08-22 06:19:47 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2007-08-22 06:19:47 +0000 |
commit | 96f2d0d00ba58f6b23dc5658e6c747526e9254d9 (patch) | |
tree | c06c887dc8de3fc74f1e58f06f8667fec515336c /src | |
parent | f2f399dcd552e73f68c9e8adfe26ef7995724cb3 (diff) | |
download | jquery-96f2d0d00ba58f6b23dc5658e6c747526e9254d9.tar.gz jquery-96f2d0d00ba58f6b23dc5658e6c747526e9254d9.zip |
Fixed the case where global events weren't being triggered on window and document.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/event.js b/src/event/event.js index 23dbd6fd4..2d007117a 100644 --- a/src/event/event.js +++ b/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 { |