MCPcopy Index your code
hub / github.com/DHTMLX/gantt / loadMode

Function loadMode

samples/common/codehighlight/codemirror.js:4687–4690  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

4685 // Used to get the editor into a consistent state again when options change.
4686
4687 function loadMode(cm) {
4688 cm.doc.mode = getMode(cm.options, cm.doc.modeOption);
4689 resetModeState(cm);
4690 }
4691
4692 function resetModeState(cm) {
4693 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