From: John Resig Date: Thu, 14 Sep 2006 22:26:42 +0000 (+0000) Subject: Added quick fix for event triggering, while passing in data. X-Git-Tag: 1.0.2~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=130f3e6d4381783ec2e94b3e146c01fbc633fc74;p=jquery.git Added quick fix for event triggering, while passing in data. --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index c1d64f2e9..f7ebb8ddd 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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;