git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 6808. Updated per code review comments by jeresig
[jquery.git]
/
src
/
data.js
diff --git
a/src/data.js
b/src/data.js
index
6dcfb4c
..
c524a45
100644
(file)
--- a/
src/data.js
+++ b/
src/data.js
@@
-51,7
+51,7
@@
jQuery.extend({
} else {
cache[ id ] = function() {
return jQuery.extend(true, {}, name);
} else {
cache[ id ] = function() {
return jQuery.extend(true, {}, name);
- }
+ };
}
} else if ( !cache[ id ] ) {
}
} else if ( !cache[ id ] ) {
@@
-61,15
+61,12
@@
jQuery.extend({
var store = {};
cache[ id ] = function() {
return store;
var store = {};
cache[ id ] = function() {
return store;
- }
+ };
}
}
}
}
- thisCache = cache[ id ];
- if ( !isNode ) {
- thisCache = thisCache();
- }
+ thisCache = isNode? cache[ id ] : cache[ id ]();
// Prevent overriding the named cache with undefined values
if ( data !== undefined ) {
// Prevent overriding the named cache with undefined values
if ( data !== undefined ) {