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 a new issue