* Adds a listener for the given event * @param {'update: ' | 'update: :after' | 'reset'} event * @param {function():void} callback
(event, callback)
| 356 | * @param {function():void} callback |
| 357 | */ |
| 358 | on(event, callback) { |
| 359 | if (!this.#on[event]) this.#on[event] = []; |
| 360 | this.#on[event].push(callback); |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * Removes the given callback from the given event |
no outgoing calls
no test coverage detected