Skip to content
Permalink
Browse files

Fake trigger events now get passed through $.event.fix() first, to gi…

…ve them an extra layer of authenticity.
  • Loading branch information
jeresig committed Jun 16, 2006
1 parent f9dbb9f commit 34dd8afb259be3ae154887dc7db6b8a8fdab0b6a
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery/jquery.js
@@ -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 );
}

0 comments on commit 34dd8af

Please sign in to comment.
You can’t perform that action at this time.