Fixed issue with broken .trigger().
authorJohn Resig <jeresig@gmail.com>
Mon, 17 Jul 2006 02:08:00 +0000 (02:08 +0000)
committerJohn Resig <jeresig@gmail.com>
Mon, 17 Jul 2006 02:08:00 +0000 (02:08 +0000)
jquery/jquery.js

index 02c22fb..7fd1146 100644 (file)
@@ -1076,8 +1076,8 @@ new function() {
                 * @type jQuery
                 * @param String type An event type
                 */
-               trigger: function( type ) {
-                       jQuery.event.trigger( this, type );
+               trigger: function( type, data ) {
+                       jQuery.event.trigger( type, data, this );
                }
        };