MCPcopy Create free account
hub / github.com/TruthHun/BookStack / clearLineMeasurementCacheFor

Function clearLineMeasurementCacheFor

static/mergely/lib/codemirror.js:2752–2759  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

2750 }
2751
2752 function clearLineMeasurementCacheFor(lineView) {
2753 if (lineView.measure) {
2754 lineView.measure.cache = {};
2755 lineView.measure.heights = null;
2756 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
2757 lineView.measure.caches[i] = {};
2758 }
2759 }
2760
2761 function clearLineMeasurementCache(cm) {
2762 cm.display.externalMeasure = null;

Callers 2

codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected