MCPcopy Create free account
hub / github.com/sql-js/sql.js / poll

Function poll

GUI/codemirror/lib/codemirror.js:3184–3189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3182 if (!ie || ie_upto8) prepareSelectAllHack();
3183 clearTimeout(detectingSelectAll);
3184 var i = 0, poll = function() {
3185 if (display.selForContextMenu == cm.doc.sel && display.input.selectionStart == 0)
3186 operation(cm, commands.selectAll)(cm);
3187 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
3188 else resetInput(cm);
3189 };
3190 detectingSelectAll = setTimeout(poll, 200);
3191 }
3192 }

Callers

nothing calls this directly

Calls 2

operationFunction · 0.85
resetInputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…