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

Function clearLineMeasurementCache

static/libs/codemirror.js:2619–2624  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2617}
2618
2619function clearLineMeasurementCache(cm) {
2620 cm.display.externalMeasure = null;
2621 removeChildren(cm.display.lineMeasure);
2622 for (var i = 0; i < cm.display.view.length; i++)
2623 { clearLineMeasurementCacheFor(cm.display.view[i]); }
2624}
2625
2626function clearCaches(cm) {
2627 clearLineMeasurementCache(cm);

Callers 2

clearCachesFunction · 0.85
addEditorMethodsFunction · 0.85

Calls 2

removeChildrenFunction · 0.85

Tested by

no test coverage detected