MCPcopy Create free account
hub / github.com/sql-js/sql.js / clearLineMeasurementCacheFor

Function clearLineMeasurementCacheFor

GUI/codemirror/lib/codemirror.js:1654–1661  ·  view source on GitHub ↗
(lineView)

Source from the content-addressed store, hash-verified

1652 }
1653
1654 function clearLineMeasurementCacheFor(lineView) {
1655 if (lineView.measure) {
1656 lineView.measure.cache = {};
1657 lineView.measure.heights = null;
1658 if (lineView.rest) for (var i = 0; i < lineView.rest.length; i++)
1659 lineView.measure.caches[i] = {};
1660 }
1661 }
1662
1663 function clearLineMeasurementCache(cm) {
1664 cm.display.externalMeasure = null;

Callers 2

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…