Skip to content

Expose EventDispatcher's _listeners as protected #1374

@HoloTheDrunk

Description

@HoloTheDrunk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions