mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added quick fix for event triggering, while passing in data.
This commit is contained in:
parent
f50224d653
commit
130f3e6d43
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 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user