Skip to content
Permalink
Browse files

fix global event triggering that i broke in r6323

  • Loading branch information
brandonaaron committed May 1, 2009
1 parent 96fd5f1 commit cbda6c541b9f2dd8fbaa084ecce7f421e8dc3dc4
Showing with 128 additions and 128 deletions.
  1. +4 −4 src/event.js
  2. +124 −124 test/unit/ajax.js
@@ -214,11 +214,11 @@ jQuery.event = {
event.stopPropagation();
// Only trigger if we've ever bound an event for it
if ( this.global[ type ] ) {
for ( var cached in jQuery.cache ) {
if ( cached.events && cached.events[ type ] ) {
this.trigger( event, data, cached.handle.elem );
jQuery.each( jQuery.cache, function() {
if ( this.events && this.events[type] ) {
jQuery.event.trigger( event, data, this.handle.elem );
}
}
});
}
}

0 comments on commit cbda6c5

Please sign in to comment.
You can’t perform that action at this time.