Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener cannot remove handlers for events #34

Open
benedictchen opened this issue Mar 24, 2022 · 0 comments
Open

Listener cannot remove handlers for events #34

benedictchen opened this issue Mar 24, 2022 · 0 comments

Comments

@benedictchen
Copy link

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant