diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-05-16 10:38:36 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-05-16 10:38:36 -0400 |
commit | c17f589ec99e8309e813a4081eed47f39a0c6120 (patch) | |
tree | f48065222582fed19528f11827c1da88022181e5 /src | |
parent | a5cf257a8a240f96f1ec255599fa1d1190f51ff5 (diff) | |
download | jquery-c17f589ec99e8309e813a4081eed47f39a0c6120.tar.gz jquery-c17f589ec99e8309e813a4081eed47f39a0c6120.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index 2bed09046..d2d57d676 100644 --- a/src/event.js +++ b/src/event.js @@ -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, |