MCPcopy Create free account
hub / github.com/TruthHun/BookStack / poll

Function poll

static/editor.md/lib/codemirror/lib/codemirror.js:1460–1465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1458 if (te.selectionStart != null) {
1459 if (!ie || (ie && ie_version < 9)) prepareSelectAllHack();
1460 var i = 0, poll = function() {
1461 if (display.selForContextMenu == cm.doc.sel && te.selectionStart == 0)
1462 operation(cm, commands.selectAll)(cm);
1463 else if (i++ < 10) display.detectingSelectAll = setTimeout(poll, 500);
1464 else display.input.reset();
1465 };
1466 display.detectingSelectAll = setTimeout(poll, 200);
1467 }
1468 }

Callers

nothing calls this directly

Calls 2

operationFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected