MCPcopy Create free account
hub / github.com/witheve/Eve / clearCaches

Function clearCaches

src/codemirror.js:2776–2781  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2774 }
2775
2776 function clearCaches(cm) {
2777 clearLineMeasurementCache(cm);
2778 cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
2779 if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
2780 cm.display.lineNumChars = null;
2781 }
2782
2783 function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
2784 function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; }

Callers 3

wrappingChangedFunction · 0.85
themeChangedFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

Tested by

no test coverage detected