Skip to content
Permalink
Browse files

jquery event: event.stopImmediatePropagation() stops live handlers as…

… well.
  • Loading branch information
flesler committed Jan 4, 2009
1 parent 83be3dc commit 9472728bced5c6c2de53b8a95eead8d08a299eda
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/event.js
@@ -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;

0 comments on commit 9472728

Please sign in to comment.
You can’t perform that action at this time.