]> source.dussan.org Git - jquery.git/commitdiff
Added quick fix for event triggering, while passing in data.
authorJohn Resig <jeresig@gmail.com>
Thu, 14 Sep 2006 22:26:42 +0000 (22:26 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 14 Sep 2006 22:26:42 +0000 (22:26 +0000)
src/jquery/jquery.js

index c1d64f2e97daf26be96323909c8d7f168cc732a1..f7ebb8ddd5b9ccfbf4d7b0e76af199f8a9919b3a 100644 (file)
@@ -2131,8 +2131,11 @@ jQuery.extend({
 
                        var c = this.events[event.type];
 
+                       var args = [].slice.call( arguments, 1 );
+                       args.unshiftT( event );
+
                        for ( var j in c ) {
-                               if ( c[j].apply( this, [event] ) === false ) {
+                               if ( c[j].apply( this, args ) === false ) {
                                        event.preventDefault();
                                        event.stopPropagation();
                                        returnValue = false;