* Iterate over all functions, calling %%callback%%, sorted by their name.
(callback)
| 452 | * Iterate over all functions, calling %%callback%%, sorted by their name. |
| 453 | */ |
| 454 | forEachFunction(callback) { |
| 455 | const names = Array.from(this.#functions.keys()); |
| 456 | names.sort((a, b) => a.localeCompare(b)); |
| 457 | for (let i = 0; i < names.length; i++) { |
| 458 | const name = names[i]; |
| 459 | callback((this.#functions.get(name)), i); |
| 460 | } |
| 461 | } |
| 462 | // Find an event definition by any means necessary (unless it is ambiguous) |
| 463 | #getEvent(key, values, forceUnique) { |
| 464 | // EventTopic |