Skip to content
Permalink
Browse files
Added quick fix for event triggering, while passing in data.
  • Loading branch information
jeresig committed Sep 14, 2006
1 parent f50224d commit 130f3e6d4381783ec2e94b3e146c01fbc633fc74
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;

0 comments on commit 130f3e6

Please sign in to comment.