Commit 96f2d0d0 authored by John Resig's avatar John Resig

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

parent f2f399dc
...@@ -130,7 +130,7 @@ jQuery.event = { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment