MCPcopy Index your code
hub / github.com/witheve/Eve / clearLineMeasurementCacheFor

Function clearLineMeasurementCacheFor

src/codemirror.js:2760–2767  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

2758 }
2759
2760 function clearLineMeasurementCacheFor(lineView) {
2761 if (lineView.measure) {
2762 lineView.measure.cache = {};
2763 lineView.measure.heights = null;
2764 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
2765 lineView.measure.caches[i] = {};
2766 }
2767 }
2768
2769 function clearLineMeasurementCache(cm) {
2770 cm.display.externalMeasure = null;

Callers 2

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected