Commit 560c33b3 authored by Dave Methvin's avatar Dave Methvin

Stop global event bubbling using onlyHandlers flag.

parent 4ac6f8d9
...@@ -300,10 +300,9 @@ jQuery.event = { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment