MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / themeChanged

Function themeChanged

static/libs/codemirror.js:7586–7590  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

7584}
7585
7586function themeChanged(cm) {
7587 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
7588 cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-");
7589 clearCaches(cm);
7590}
7591
7592var Init = {toString: function(){return "CodeMirror.Init"}};
7593

Callers 2

defineOptionsFunction · 0.85
CodeMirror$1Function · 0.85

Calls 1

clearCachesFunction · 0.85

Tested by

no test coverage detected