()
| 205 | // something in the input textarea, we poll faster, to ensure that |
| 206 | // the change appears on the screen quickly. |
| 207 | fastPoll() { |
| 208 | let missed = false, input = this |
| 209 | input.pollingFast = true |
| 210 | function p() { |
| 211 | let changed = input.poll() |
| 212 | if (!changed && !missed) {missed = true; input.polling.set(60, p)} |
| 213 | else {input.pollingFast = false; input.slowPoll()} |
| 214 | } |
| 215 | input.polling.set(20, p) |
| 216 | } |
| 217 | |
| 218 | // Read input from the textarea, and update the document to match. |
| 219 | // When something is selected, it is present in the textarea, and |
no test coverage detected