MCPcopy Index your code
hub / github.com/tsoding/button / fireEvents

Function fireEvents

index.js:213–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211eventsTable.sort((a, b) => b.onCount - a.onCount);
212
213function fireEvents() {
214 for (const event of eventsTable) {
215 if (event.onCount <= counter) {
216 event.action();
217 break;
218 }
219 }
220}
221
222let shaking = false;
223let counter = 0; // TODO: DONT FORGET TO SET TO 0 ON RELEASE!!!

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…