git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core: Fixed #2605: .data() now accepts null as a value.
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
c3cd3d8
..
b6bdc1d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-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