]> source.dussan.org Git - jquery.git/commitdiff
Fake trigger events now get passed through $.event.fix() first, to give them an extra...
authorJohn Resig <jeresig@gmail.com>
Fri, 16 Jun 2006 00:02:54 +0000 (00:02 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 16 Jun 2006 00:02:54 +0000 (00:02 +0000)
jquery/jquery.js

index cfac542b2816ddc529d69d37bbc6eb8208c16371..6a79833fae310754bc95033d05d6ed5e6b1af4ba 100644 (file)
@@ -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 );
        }