Commit 82eccdfc authored by John Resig's avatar John Resig

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

Make sure that the right event type is always triggered (was causing problems with UI's event triggering).
parent 41590d37
...@@ -155,6 +155,9 @@ jQuery.event = { ...@@ -155,6 +155,9 @@ jQuery.event = {
if ( evt ) if ( evt )
data.unshift( this.fix({ type: type, target: element }) ); data.unshift( this.fix({ type: type, target: element }) );
// Enforce the right trigger type
data[0].type = type;
// Trigger the event // Trigger the event
if ( jQuery.isFunction( jQuery.data(element, "handle") ) ) if ( jQuery.isFunction( jQuery.data(element, "handle") ) )
val = jQuery.data(element, "handle").apply( element, data ); val = jQuery.data(element, "handle").apply( element, data );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment