You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow users to seamlessly extend the behaviour of EventDispatcher when deriving from it.
As it stands, extending EventDispatcher does not allow the user to access the _listeners field without TypeScript errors, making code implementing utility functions worse. One common example would be clearing the listeners, which is not possible with the default EventDispatcher but is sometimes necessary.
The text was updated successfully, but these errors were encountered:
This would allow users to seamlessly extend the behaviour of
EventDispatcher
when deriving from it.As it stands, extending
EventDispatcher
does not allow the user to access the_listeners
field without TypeScript errors, making code implementing utility functions worse. One common example would be clearing the listeners, which is not possible with the defaultEventDispatcher
but is sometimes necessary.The text was updated successfully, but these errors were encountered: