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

Function loadMode

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

Source from the content-addressed store, hash-verified

6457 // Used to get the editor into a consistent state again when options change.
6458
6459 function loadMode(cm) {
6460 cm.doc.mode = getMode(cm.options, cm.doc.modeOption)
6461 resetModeState(cm)
6462 }
6463
6464 function resetModeState(cm) {
6465 cm.doc.iter(function (line) {

Callers 2

attachDocFunction · 0.85
defineOptionsFunction · 0.85

Calls 2

getModeFunction · 0.85
resetModeStateFunction · 0.85

Tested by

no test coverage detected