Skip to content
Permalink
Browse files

Stop global event bubbling using onlyHandlers flag.

  • Loading branch information...
dmethvin committed Oct 24, 2011
1 parent 4ac6f8d commit 560c33b395ec809cc296c97cab41244949ec863c
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/event.js
@@ -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;

0 comments on commit 560c33b

Please sign in to comment.
You can’t perform that action at this time.