(cm)
| 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) { |
no test coverage detected