]> source.dussan.org Git - jquery.git/commitdiff
jquery event: event.stopImmediatePropagation() stops live handlers as well.
authorAriel Flesler <aflesler@gmail.com>
Sun, 4 Jan 2009 22:32:18 +0000 (22:32 +0000)
committerAriel Flesler <aflesler@gmail.com>
Sun, 4 Jan 2009 22:32:18 +0000 (22:32 +0000)
src/event.js

index e90ef0760a61da01f7593c7777387008fbfee62b..f1cdfc999f3fc1f1655bb02f1ebd8031d945a154 100644 (file)
@@ -563,7 +563,7 @@ function liveHandler( event ){
                stop = true;
 
        jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
-               if ( check.test(fn.type) ) {
+               if ( !event.isImmediatePropagationStopped() && check.test(fn.type) ) {
                        var elem = jQuery(event.target).closest(fn.data)[0];
                        if ( elem && fn.call(elem, event, fn.data) === false )
                                stop = false;