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

Function poll

tools/pythonauto/static/codemirrorepl/codemirror.js:3148–3153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3146 if (!ie || ie_upto8) prepareSelectAllHack();
3147 clearTimeout(detectingSelectAll);
3148 var i = 0, poll = function(){
3149 if (display.prevInput == "\u200b" && display.input.selectionStart == 0)
3150 operation(cm, commands.selectAll)(cm);
3151 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
3152 else resetInput(cm);
3153 };
3154 detectingSelectAll = setTimeout(poll, 200);
3155 }
3156 }

Callers

nothing calls this directly

Calls 2

operationFunction · 0.70
resetInputFunction · 0.70

Tested by

no test coverage detected