Landing pull request 377. Check custom data != null(undefined), allows zero; Fixes #9285.
More Details: - https://github.com/jquery/jquery/pull/377 - http://bugs.jquery.com/ticket/9285
This commit is contained in:
parent
a5cf257a8a
commit
c17f589ec9
2 changed files with 21 additions and 1 deletions
|
@ -345,7 +345,7 @@ jQuery.event = {
|
|||
event.target = elem;
|
||||
|
||||
// Clone any incoming data and prepend the event, creating the handler arg list
|
||||
data = data ? jQuery.makeArray( data ) : [];
|
||||
data = data != null ? jQuery.makeArray( data ) : [];
|
||||
data.unshift( event );
|
||||
|
||||
var cur = elem,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue