mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 16:24:57 -05:00
Fix #14101: $().data() should be undefined, not null
This commit is contained in:
committed by
Rick Waldron
parent
cc19a6bd3b
commit
30eee925db
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user