MCPcopy Index your code
hub / github.com/documentcloud/visualsearch / createCache

Function createCache

build-min/dependencies.js:43–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){}finally{if(!old){context.removeAttribute("id");}}}}}
42return select(selector.replace(rtrim,"$1"),context,results,seed);}
43function createCache(){var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift()];}
44return(cache[key+" "]=value);}
45return cache;}
46function markFunction(fn){fn[expando]=true;return fn;}
47function assert(fn){var div=document.createElement("div");try{return!!fn(div);}catch(e){return false;}finally{if(div.parentNode){div.parentNode.removeChild(div);}
48div=null;}}

Callers 1

dependencies.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected