MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / fastPoll

Method fastPoll

lib/web/CodeMirror/src/input/TextareaInput.js:207–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 // something in the input textarea, we poll faster, to ensure that
206 // the change appears on the screen quickly.
207 fastPoll() {
208 let missed = false, input = this
209 input.pollingFast = true
210 function p() {
211 let changed = input.poll()
212 if (!changed && !missed) {missed = true; input.polling.set(60, p)}
213 else {input.pollingFast = false; input.slowPoll()}
214 }
215 input.polling.set(20, p)
216 }
217
218 // Read input from the textarea, and update the document to match.
219 // When something is selected, it is present in the textarea, and

Callers 3

onKeyPressMethod · 0.95
codemirror.jsFile · 0.80
initMethod · 0.80

Calls 1

setMethod · 0.65

Tested by

no test coverage detected