core: Fixed #2605: .data() now accepts null as a value.
This commit is contained in:
parent
35c68b4578
commit
ad3c49d1b6
2 changed files with 6 additions and 2 deletions
|
@ -669,7 +669,7 @@ jQuery.extend({
|
|||
jQuery.cache[ id ] = {};
|
||||
|
||||
// Prevent overriding the named cache with undefined values
|
||||
if ( data != undefined )
|
||||
if ( data !== undefined )
|
||||
jQuery.cache[ id ][ name ] = data;
|
||||
|
||||
// Return the named cache data, or the ID for the element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue