]> source.dussan.org Git - jquery.git/commitdiff
Stop global event bubbling using onlyHandlers flag.
authorDave Methvin <dave.methvin@gmail.com>
Mon, 24 Oct 2011 03:03:00 +0000 (23:03 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 24 Oct 2011 15:18:19 +0000 (11:18 -0400)
src/event.js

index 64cfda5308affef11141676f47b535c0e18fbe4e..488d3bae9d1e90751c7feeb4f46e115e331a48be 100644 (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;