jquery event: event.stopImmediatePropagation() stops live handlers as well.
This commit is contained in:
parent
83be3dca69
commit
9472728bce
|
@ -563,7 +563,7 @@ function liveHandler( event ){
|
||||||
stop = true;
|
stop = true;
|
||||||
|
|
||||||
jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
|
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];
|
var elem = jQuery(event.target).closest(fn.data)[0];
|
||||||
if ( elem && fn.call(elem, event, fn.data) === false )
|
if ( elem && fn.call(elem, event, fn.data) === false )
|
||||||
stop = false;
|
stop = false;
|
||||||
|
|
Loading…
Reference in a new issue