From: John Resig Date: Fri, 14 Sep 2007 23:58:51 +0000 (+0000) Subject: Make sure that the right event type is always triggered (was causing problems with... X-Git-Tag: 1.2.1~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=82eccdfcd0ba2e97c3fb7abac20b1146fbce5b2d;p=jquery.git Make sure that the right event type is always triggered (was causing problems with UI's event triggering). --- diff --git a/src/event.js b/src/event.js index 3fba15866..f2e5fc687 100644 --- a/src/event.js +++ b/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 );