X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdata.js;h=c524a457dfa2c817a0f7dfe6d3b9bcd3b84aa785;hb=266facc08a2e1c8cb5a7a60de304da47657f2227;hp=6dcfb4c2278ca44ac595a2538ebd9e43b18f4ce6;hpb=9faab0b74fd316c2161612236d9ea8a01f3c78f8;p=jquery.git diff --git a/src/data.js b/src/data.js index 6dcfb4c..c524a45 100644 --- a/src/data.js +++ b/src/data.js @@ -51,7 +51,7 @@ jQuery.extend({ } else { cache[ id ] = function() { return jQuery.extend(true, {}, name); - } + }; } } else if ( !cache[ id ] ) { @@ -61,15 +61,12 @@ jQuery.extend({ 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 ) {