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