()
| 811 | } |
| 812 | |
| 813 | function onFocus() { |
| 814 | if (options.readOnly == "nocursor") return; |
| 815 | if (!focused) { |
| 816 | if (options.onFocus) options.onFocus(instance); |
| 817 | focused = true; |
| 818 | if (wrapper.className.search(/\bCodeMirror-focused\b/) == -1) |
| 819 | wrapper.className += " CodeMirror-focused"; |
| 820 | if (!leaveInputAlone) resetInput(true); |
| 821 | } |
| 822 | slowPoll(); |
| 823 | restartBlink(); |
| 824 | } |
| 825 | function onBlur() { |
| 826 | if (focused) { |
| 827 | if (options.onBlur) options.onBlur(instance); |
no test coverage detected