Skip to content
Permalink
Browse files

The triggered flag was being set too early, which was preventing bubb…

…ling form working when a

native event existed.
  • Loading branch information
jeresig committed Jan 5, 2009
1 parent ebd9205 commit 69e86d4f98a362d3834adf1bf4c32ed8e433f135
Showing with 2 additions and 2 deletions.
  1. +2 −2 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) {

0 comments on commit 69e86d4

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