MCPcopy Create free account
hub / github.com/breck7/scroll / clearLineMeasurementCacheFor

Function clearLineMeasurementCacheFor

external/.scrollLibs.js:3861–3871  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

3859 }
3860
3861 function clearLineMeasurementCacheFor(lineView) {
3862 if (lineView.measure) {
3863 lineView.measure.cache = {}
3864 lineView.measure.heights = null
3865 if (lineView.rest) {
3866 for (var i = 0; i < lineView.rest.length; i++) {
3867 lineView.measure.caches[i] = {}
3868 }
3869 }
3870 }
3871 }
3872
3873 function clearLineMeasurementCache(cm) {
3874 cm.display.externalMeasure = null

Callers 2

.scrollLibs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected