From 82eccdfcd0ba2e97c3fb7abac20b1146fbce5b2d Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 14 Sep 2007 23:58:51 +0000 Subject: [PATCH] Make sure that the right event type is always triggered (was causing problems with UI's event triggering). --- src/event.js | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.5