Skip to content
Permalink
Browse files

Make sure that the right event type is always triggered (was causing …

…problems with UI's event triggering).
  • Loading branch information
jeresig committed Sep 14, 2007
1 parent 41590d3 commit 82eccdfcd0ba2e97c3fb7abac20b1146fbce5b2d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/event.js
@@ -155,6 +155,9 @@ jQuery.event = {
if ( evt )
data.unshift( this.fix({ type: type, target: element }) );

// Enforce the right trigger type
data[0].type = type;

// Trigger the event
if ( jQuery.isFunction( jQuery.data(element, "handle") ) )
val = jQuery.data(element, "handle").apply( element, data );

0 comments on commit 82eccdf

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