aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-05-16 10:38:36 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-16 10:38:36 -0400
commitc17f589ec99e8309e813a4081eed47f39a0c6120 (patch)
treef48065222582fed19528f11827c1da88022181e5 /src
parenta5cf257a8a240f96f1ec255599fa1d1190f51ff5 (diff)
downloadjquery-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.js2
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,