aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.js
diff options
context:
space:
mode:
authorCorey Frang <gnarf37@gmail.com>2013-11-05 15:03:28 -0500
committerRick Waldron <waldron.rick@gmail.com>2013-11-06 10:25:12 -0500
commit30eee925dbc9f8d465ccf064f48c24061ffdc378 (patch)
tree53797510073b85d5fe48f71dc97cf8443de8f1f1 /src/data.js
parentcc19a6bd3b6183887b52a965e77234f4dd9684ca (diff)
downloadjquery-30eee925dbc9f8d465ccf064f48c24061ffdc378.tar.gz
jquery-30eee925dbc9f8d465ccf064f48c24061ffdc378.zip
Fix #14101: $().data() should be undefined, not null
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/data.js b/src/data.js
index 63920bb9e..8b285d266 100644
--- a/src/data.js
+++ b/src/data.js
@@ -75,8 +75,7 @@ jQuery.extend({
jQuery.fn.extend({
data: function( key, value ) {
- var i, name,
- data = null,
+ var i, name, data,
elem = this[ 0 ],
attrs = elem && elem.attributes;