MCPcopy Create free account
hub / github.com/breck7/scroll / themeChanged

Function themeChanged

external/.scrollLibs.js:10454–10457  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

10452 }
10453
10454 function themeChanged(cm) {
10455 cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") + cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-")
10456 clearCaches(cm)
10457 }
10458
10459 var Init = {
10460 toString: function () {

Callers 2

defineOptionsFunction · 0.85
CodeMirrorFunction · 0.85

Calls 2

clearCachesFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected