mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 19:48:06 -05:00
jquery event: event.stopImmediatePropagation() stops live handlers as well.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user