From 34dd8afb259be3ae154887dc7db6b8a8fdab0b6a Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 16 Jun 2006 00:02:54 +0000 Subject: [PATCH] Fake trigger events now get passed through $.event.fix() first, to give them an extra layer of authenticity. --- jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery.js b/jquery/jquery.js index cfac542b2..6a79833fa 100644 --- a/jquery/jquery.js +++ b/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 ); }