MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / clearLineMeasurementCacheFor

Function clearLineMeasurementCacheFor

static/libs/codemirror.js:2610–2617  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

2608}
2609
2610function clearLineMeasurementCacheFor(lineView) {
2611 if (lineView.measure) {
2612 lineView.measure.cache = {};
2613 lineView.measure.heights = null;
2614 if (lineView.rest) { for (var i = 0; i < lineView.rest.length; i++)
2615 { lineView.measure.caches[i] = {}; } }
2616 }
2617}
2618
2619function clearLineMeasurementCache(cm) {
2620 cm.display.externalMeasure = null;

Callers 2

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected