(cm, e)
| 4670 | restartBlink(cm) |
| 4671 | } |
| 4672 | function onBlur(cm, e) { |
| 4673 | if (cm.state.delayingBlurEvent) { |
| 4674 | return |
| 4675 | } |
| 4676 | |
| 4677 | if (cm.state.focused) { |
| 4678 | signal(cm, "blur", cm, e) |
| 4679 | cm.state.focused = false |
| 4680 | rmClass(cm.display.wrapper, "CodeMirror-focused") |
| 4681 | } |
| 4682 | clearInterval(cm.display.blinker) |
| 4683 | setTimeout(function () { |
| 4684 | if (!cm.state.focused) { |
| 4685 | cm.display.shift = false |
| 4686 | } |
| 4687 | }, 150) |
| 4688 | } |
| 4689 | |
| 4690 | // Read the actual heights of the rendered lines, and update their |
| 4691 | // stored heights to match. |
no test coverage detected