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:
Rick Waldron 2011-05-16 10:38:36 -04:00 committed by timmywil
parent a5cf257a8a
commit c17f589ec9
2 changed files with 21 additions and 1 deletions

View file

@ -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,