MCPcopy
hub / github.com/hokein/electron-sample-apps / fastPoll

Function fastPoll

mini-code-editor/cm/lib/codemirror.js:835–846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

833 });
834 }
835 function fastPoll() {
836 var missed = false;
837 pollingFast = true;
838 function p() {
839 startOperation();
840 var changed = readInput();
841 if (!changed && !missed) {missed = true; poll.set(60, p);}
842 else {pollingFast = false; slowPoll();}
843 endOperation();
844 }
845 poll.set(20, p);
846 }
847
848 // Previnput is a hack to work with IME. If we reset the textarea
849 // on every change, that breaks IME. So we look for changes

Callers 2

CodeMirrorFunction · 0.85
onKeyPressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected