(cm)
| 230 | // Used to get the editor into a consistent state again when options change. |
| 231 | |
| 232 | function loadMode(cm) { |
| 233 | cm.doc.mode = CodeMirror.getMode(cm.options, cm.doc.modeOption); |
| 234 | resetModeState(cm); |
| 235 | } |
| 236 | |
| 237 | function resetModeState(cm) { |
| 238 | cm.doc.iter(function(line) { |
no test coverage detected