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

Function clearCaches

static/editor.md/lib/codemirror/lib/codemirror.js:2662–2667  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2660 }
2661
2662 function clearCaches(cm) {
2663 clearLineMeasurementCache(cm);
2664 cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
2665 if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
2666 cm.display.lineNumChars = null;
2667 }
2668
2669 function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
2670 function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; }

Callers 3

wrappingChangedFunction · 0.70
themeChangedFunction · 0.70
codemirror.jsFile · 0.70

Calls 1

Tested by

no test coverage detected