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

Function clearCaches

static/mergely/lib/codemirror.js:2768–2773  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2766 }
2767
2768 function clearCaches(cm) {
2769 clearLineMeasurementCache(cm);
2770 cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
2771 if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
2772 cm.display.lineNumChars = null;
2773 }
2774
2775 function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
2776 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