()
| 1024 | |
| 1025 | var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll |
| 1026 | function slowPoll() { |
| 1027 | if (pollingFast) return; |
| 1028 | poll.set(options.pollInterval, function() { |
| 1029 | startOperation(); |
| 1030 | readInput(); |
| 1031 | if (focused) slowPoll(); |
| 1032 | endOperation(); |
| 1033 | }); |
| 1034 | } |
| 1035 | function fastPoll() { |
| 1036 | var missed = false; |
| 1037 | pollingFast = true; |
no test coverage detected