()
| 824 | |
| 825 | var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll |
| 826 | function slowPoll() { |
| 827 | if (pollingFast) return; |
| 828 | poll.set(options.pollInterval, function() { |
| 829 | startOperation(); |
| 830 | readInput(); |
| 831 | if (focused) slowPoll(); |
| 832 | endOperation(); |
| 833 | }); |
| 834 | } |
| 835 | function fastPoll() { |
| 836 | var missed = false; |
| 837 | pollingFast = true; |
no test coverage detected