MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / dispatchEventWithTimeout

Function dispatchEventWithTimeout

src/handlers/quickToolsInit.js:337–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335 }
336
337 const dispatchEventWithTimeout = () => {
338 if (time > 50) {
339 time -= 10;
340 }
341 click($el);
342 timeout = setTimeout(dispatchEventWithTimeout, time);
343 };
344
345 if (activeFile.focused) {
346 editor.focus();

Callers 1

oncontextmenuFunction · 0.85

Calls 1

clickFunction · 0.70

Tested by

no test coverage detected