Skip to content

Listener cannot remove handlers for events #34

@benedictchen

Description

@benedictchen

class Listener has a property dictionary of event names to closures. We are able to register new listeners, but we can never remove them. Please add a new method so we can remove them.

class Listener {

removeListener(eventName: String) {
    self.onListener[eventName] = nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions