aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/event.js3
1 files changed, 3 insertions, 0 deletions
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 );