Skip to content

Commit

Permalink
The triggered flag was being set too early, which was preventing bubb…
Browse files Browse the repository at this point in the history
…ling form working when a

native event existed.
  • Loading branch information
jeresig committed Jan 5, 2009
1 parent ebd9205 commit 69e86d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 69e86d4

Please sign in to comment.