mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fake trigger events now get passed through $.event.fix() first, to give them an extra layer of authenticity.
This commit is contained in:
parent
f9dbb9f73a
commit
34dd8afb25
2
jquery/jquery.js
vendored
2
jquery/jquery.js
vendored
@ -803,7 +803,7 @@ $.event.remove = function(element, type, handler) {
|
||||
};
|
||||
|
||||
$.event.trigger = function(element,type,data) {
|
||||
data = data || [{ type: type }];
|
||||
data = data || [ $.event.fix({ type: type }) ];
|
||||
if ( element && element["on" + type] ) {
|
||||
$.apply( element, element["on" + type], data );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user