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

Function poll

tools/pythonauto/static/codemirror/codemirror.js:2257–2262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2255 if (!ie || ie_lt9) prepareSelectAllHack();
2256 clearTimeout(detectingSelectAll);
2257 var i = 0, poll = function(){
2258 if (display.prevInput == "\u200b" && display.input.selectionStart == 0)
2259 operation(cm, commands.selectAll)(cm);
2260 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
2261 else resetInput(cm);
2262 };
2263 detectingSelectAll = setTimeout(poll, 200);
2264 }
2265 }

Callers

nothing calls this directly

Calls 2

operationFunction · 0.70
resetInputFunction · 0.70

Tested by

no test coverage detected