MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / setCache

Function setCache

scripts/smoothScroll.js:619–623  ·  view source on GitHub ↗
(elems, overflowing, x)

Source from the content-addressed store, hash-verified

617 }, 1 * 1000);
618 }
619 function setCache(elems, overflowing, x) {
620 let cache = x ? cacheX : cacheY;
621 for (let i = elems.length; i--; ) cache[uniqueID(elems[i])] = overflowing;
622 return overflowing;
623 }
624 function getCache(el, x) {
625 return (x ? cacheX : cacheY)[uniqueID(el)];
626 }

Callers 1

overflowingAncestorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected