jquery event: event.stopImmediatePropagation() stops live handlers as well.
This commit is contained in:
parent
83be3dca69
commit
9472728bce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue