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

Function slowPoll

tools/pythonauto/static/codemirrorepl/codemirror.js:2181–2187  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2179 // Poll for input changes, using the normal rate of polling. This
2180 // runs as long as the editor is focused.
2181 function slowPoll(cm) {
2182 if (cm.display.pollingFast) return;
2183 cm.display.poll.set(cm.options.pollInterval, function() {
2184 readInput(cm);
2185 if (cm.state.focused) slowPoll(cm);
2186 });
2187 }
2188
2189 // When an event has just come in that is likely to add or change
2190 // something in the input textarea, we poll faster, to ensure that

Callers 3

pFunction · 0.70
onFocusFunction · 0.70
rehideFunction · 0.70

Calls 1

readInputFunction · 0.70

Tested by

no test coverage detected