MCPcopy
hub / github.com/chartjs/Chart.js / _cachedScopes

Method _cachedScopes

src/core/core.config.js:280–288  ·  view source on GitHub ↗

* @private

(mainScope, resetCache)

Source from the content-addressed store, hash-verified

278 * @private
279 */
280 _cachedScopes(mainScope, resetCache) {
281 const _scopeCache = this._scopeCache;
282 let cache = _scopeCache.get(mainScope);
283 if (!cache || resetCache) {
284 cache = new Map();
285 _scopeCache.set(mainScope, cache);
286 }
287 return cache;
288 }
289
290 /**
291 * Resolves the objects from options and defaults for option value resolution.

Callers 1

getOptionScopesMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected