From 130f3e6d4381783ec2e94b3e146c01fbc633fc74 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 14 Sep 2006 22:26:42 +0000 Subject: [PATCH] Added quick fix for event triggering, while passing in data. --- src/jquery/jquery.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;