core: Fixed #2605: .data() now accepts null as a value.

This commit is contained in:
Scott González 2008-05-03 01:39:27 +00:00
parent 35c68b4578
commit ad3c49d1b6
2 changed files with 6 additions and 2 deletions

View file

@ -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