MCPcopy Index your code
hub / github.com/csev/py4e / clearCaches

Function clearCaches

tools/pythonauto/static/codemirrorepl/codemirror.js:1654–1659  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1652 }
1653
1654 function clearCaches(cm) {
1655 clearLineMeasurementCache(cm);
1656 cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
1657 if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
1658 cm.display.lineNumChars = null;
1659 }
1660
1661 function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
1662 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