(cm)
| 199 | // Used to get the editor into a consistent state again when options change. |
| 200 | |
| 201 | function loadMode(cm) { |
| 202 | cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption); |
| 203 | resetModeState(cm); |
| 204 | } |
| 205 | |
| 206 | function resetModeState(cm) { |
| 207 | cm.doc.iter(function(line) { |
no test coverage detected