MCPcopy Index your code
hub / github.com/witheve/Eve / loadMode

Function loadMode

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

Source from the content-addressed store, hash-verified

237 // Used to get the editor into a consistent state again when options change.
238
239 function loadMode(cm) {
240 cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption);
241 resetModeState(cm);
242 }
243
244 function resetModeState(cm) {
245 cm.doc.iter(function(line) {

Callers 2

codemirror.jsFile · 0.85
attachDocFunction · 0.85

Calls 2

resetModeStateFunction · 0.85
getModeMethod · 0.80

Tested by

no test coverage detected