Skip to content
Permalink
Browse files

Ticket 6808. Updated per code review comments by jeresig

  • Loading branch information...
InfinitiesLoop authored and jeresig committed Jul 22, 2010
1 parent 9faab0b commit 266facc08a2e1c8cb5a7a60de304da47657f2227
Showing with 3 additions and 6 deletions.
  1. +3 −6 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 ) {

0 comments on commit 266facc

Please sign in to comment.
You can’t perform that action at this time.