Stop global event bubbling using onlyHandlers flag.

This commit is contained in:
Dave Methvin 2011-10-23 23:03:00 -04:00
parent 4ac6f8d9d3
commit 560c33b395

View File

@ -300,10 +300,9 @@ jQuery.event = {
// TODO: Stop taunting the data cache; remove global events and always attach to document
cache = jQuery.cache;
event.stopPropagation();
for ( i in cache ) {
if ( cache[ i ].events && cache[ i ].events[ type ] ) {
jQuery.event.trigger( event, data, cache[ i ].handle.elem );
jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
}
}
return;