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