MCPcopy
hub / github.com/witheve/Eve / themeChanged

Function themeChanged

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

Source from the content-addressed store, hash-verified

297 }
298
299 function themeChanged(cm) {
300 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
301 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
302 clearCaches(cm);
303 }
304
305 function guttersChanged(cm) {
306 updateGutters(cm);

Callers 2

CodeMirrorFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

clearCachesFunction · 0.85

Tested by

no test coverage detected