Indicates whether the instance has been destroyed.
After destruction, destroy is a no-op.
Protected_destroyClears all registered callbacks.
Registers a callback and returns its id plus a removal function.
Prefer on when you only need the destructor.
Registers a callback and returns a destructor function.
Registers a function to run when the instance is destroyed.
If the instance is already destroyed, action runs immediately.
Cleanup function (for example remove listeners or DOM classes).
Removes a callback by id.
Protected callbacks are skipped unless they are cleared internally (for example on destroy).
Typed event registry with support for one-time listeners, protected listeners, and delayed execution.
Used internally by Module and all components, but can also be instantiated on its own.