(cm)
| 2190 | // something in the input textarea, we poll faster, to ensure that |
| 2191 | // the change appears on the screen quickly. |
| 2192 | function fastPoll(cm) { |
| 2193 | var missed = false; |
| 2194 | cm.display.pollingFast = true; |
| 2195 | function p() { |
| 2196 | var changed = readInput(cm); |
| 2197 | if (!changed && !missed) {missed = true; cm.display.poll.set(60, p);} |
| 2198 | else {cm.display.pollingFast = false; slowPoll(cm);} |
| 2199 | } |
| 2200 | cm.display.poll.set(20, p); |
| 2201 | } |
| 2202 | |
| 2203 | // Read input from the textarea, and update the document to match. |
| 2204 | // When something is selected, it is present in the textarea, and |
no outgoing calls
no test coverage detected