From: John Resig Date: Mon, 5 Jan 2009 20:43:24 +0000 (+0000) Subject: The triggered flag was being set too early, which was preventing bubbling form workin... X-Git-Tag: 1.3b2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69e86d4f98a362d3834adf1bf4c32ed8e433f135;p=jquery.git The triggered flag was being set too early, which was preventing bubbling form working when a native event existed. --- diff --git a/src/event.js b/src/event.js index 50973024f..da03813b9 100644 --- a/src/event.js +++ b/src/event.js @@ -229,13 +229,13 @@ jQuery.event = { } catch (e) {} } + this.triggered = false; + if ( !event.isPropagationStopped() ) { var parent = elem.parentNode || elem.ownerDocument; if ( parent ) jQuery.event.trigger(event, data, parent, true); } - - this.triggered = false; }, handle: function(event) {