fix global event triggering that i broke in r6323

This commit is contained in:
Brandon Aaron 2009-05-01 00:59:27 +00:00
parent 96fd5f18d4
commit cbda6c541b
2 changed files with 127 additions and 127 deletions

View file

@ -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 );
}
});
}
}