mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Stop global event bubbling using onlyHandlers flag.
This commit is contained in:
parent
4ac6f8d9d3
commit
560c33b395
@ -300,10 +300,9 @@ jQuery.event = {
|
|||||||
|
|
||||||
// TODO: Stop taunting the data cache; remove global events and always attach to document
|
// TODO: Stop taunting the data cache; remove global events and always attach to document
|
||||||
cache = jQuery.cache;
|
cache = jQuery.cache;
|
||||||
event.stopPropagation();
|
|
||||||
for ( i in cache ) {
|
for ( i in cache ) {
|
||||||
if ( cache[ i ].events && cache[ i ].events[ type ] ) {
|
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;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user