The triggered flag was being set too early, which was preventing bubbling form working when a

native event existed.
This commit is contained in:
John Resig 2009-01-05 20:43:24 +00:00
parent ebd9205fdb
commit 69e86d4f98

View File

@ -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) {