mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
You had to have an event bound in order to trigger an event - which is not necessarily the case.
This commit is contained in:
parent
31d65e9052
commit
23220321d1
@ -91,7 +91,8 @@ jQuery.event = {
|
|||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
element[ type ]();
|
element[ type ]();
|
||||||
}
|
}
|
||||||
}
|
} else if ( jQuery.isFunction( element[ type ] ) )
|
||||||
|
element[ type ]();
|
||||||
},
|
},
|
||||||
|
|
||||||
handle: function(event) {
|
handle: function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user