Added quick fix for event triggering, while passing in data.
This commit is contained in:
parent
f50224d653
commit
130f3e6d43
1 changed files with 4 additions and 1 deletions
5
src/jquery/jquery.js
vendored
5
src/jquery/jquery.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue