mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Make sure that the right event type is always triggered (was causing problems with UI's event triggering).
This commit is contained in:
parent
41590d37e1
commit
82eccdfcd0
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user