MCPcopy Create free account
hub / github.com/JsAaron/jQuery / cache

Function cache

2.0.3/2.0.3.js:1171–1178  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

1169 var keys = [];
1170
1171 function cache( key, value ) {
1172 // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
1173 if ( keys.push( key += " " ) > Expr.cacheLength ) {
1174 // Only keep the most recent entries
1175 delete cache[ keys.shift() ];
1176 }
1177 return (cache[ key ] = value);
1178 }
1179 return cache;
1180 }
1181

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected