MCPcopy Create free account
hub / github.com/csev/py4e / clearCaches

Function clearCaches

tools/pythonauto/static/codemirror/codemirror.js:1166–1171  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1164 }
1165
1166 function clearCaches(cm) {
1167 cm.display.measureLineCache.length = cm.display.measureLineCachePos = 0;
1168 cm.display.cachedCharWidth = cm.display.cachedTextHeight = cm.display.cachedPaddingH = null;
1169 if (!cm.options.lineWrapping) cm.display.maxLineChanged = true;
1170 cm.display.lineNumChars = null;
1171 }
1172
1173 function pageScrollX() { return window.pageXOffset || (document.documentElement || document.body).scrollLeft; }
1174 function pageScrollY() { return window.pageYOffset || (document.documentElement || document.body).scrollTop; }

Callers 4

wrappingChangedFunction · 0.70
themeChangedFunction · 0.70
onResizeFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected