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

BaseComponent can remove all event handlers #1359

Open
literat opened this issue Apr 22, 2024 · 0 comments
Open

BaseComponent can remove all event handlers #1359

literat opened this issue Apr 22, 2024 · 0 comments

Comments

@literat
Copy link
Collaborator

literat commented Apr 22, 2024

WHEN (situation): when the component adds event handlers,
WHAT: I want it to be able to remove them,
WHY: because I need to dynamically create and remove components and I don't want to leave a mess behind.

Acceptance criteria
if I call the dispose() method, it will remove all event handlers of the component
Implementation notes (optional)
#823 (comment)
BaseComponent.dispose() could be used for this
the given property is missing for now, but Bootstrap has it https://github.com/twbs/bootstrap/blob/main/js/src/base-component.js#L41

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