fix global event triggering that i broke in r6323
This commit is contained in:
parent
96fd5f18d4
commit
cbda6c541b
|
@ -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 );
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue