Added quick fix for event triggering, while passing in data.

This commit is contained in:
John Resig 2006-09-14 22:26:42 +00:00
parent f50224d653
commit 130f3e6d43

View File

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