MCPcopy Index your code
hub / github.com/csev/py4e / fastPoll

Function fastPoll

tools/pythonauto/static/codemirror/codemirror.js:1479–1488  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

1477 }
1478
1479 function fastPoll(cm) {
1480 var missed = false;
1481 cm.display.pollingFast = true;
1482 function p() {
1483 var changed = readInput(cm);
1484 if (!changed && !missed) {missed = true; cm.display.poll.set(60, p);}
1485 else {cm.display.pollingFast = false; slowPoll(cm);}
1486 }
1487 cm.display.poll.set(20, p);
1488 }
1489
1490 // prevInput is a hack to work with IME. If we reset the textarea
1491 // on every change, that breaks IME. So we look for changes

Callers 3

registerEventHandlersFunction · 0.70
onKeyPressFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected