MCPcopy Create free account
hub / github.com/sql-js/sql.js / themeChanged

Function themeChanged

GUI/codemirror/lib/codemirror.js:304–308  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

302 }
303
304 function themeChanged(cm) {
305 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
306 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
307 clearCaches(cm);
308 }
309
310 function guttersChanged(cm) {
311 updateGutters(cm);

Callers 2

CodeMirrorFunction · 0.85
codemirror.jsFile · 0.85

Calls 1

clearCachesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…