MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / poll

Function poll

static/js/codemirror/codemirror.js:2014–2019  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2012 display.prevInput = " ";
2013 display.input.selectionStart = 1; display.input.selectionEnd = extval.length;
2014 var poll = function(){
2015 if (display.prevInput == " " && display.input.selectionStart == 0)
2016 operation(cm, commands.selectAll)(cm);
2017 else if (i++ < 10) detectingSelectAll = setTimeout(poll, 500);
2018 else resetInput(cm);
2019 };
2020 detectingSelectAll = setTimeout(poll, 200);
2021 }
2022 }

Callers

nothing calls this directly

Calls 2

operationFunction · 0.85
resetInputFunction · 0.85

Tested by

no test coverage detected