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

Switch ElementOn back to addEventListener instead of dom.on #25

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

ericyhwang
Copy link
Contributor

This undoes 7c6d9b9, since using dom.on was causing some undocumented breakages in code relying on on-* listeners firing as a component is being destroyed.

Longer-term fix might involve deferring the event listener cleanup, but it's not a huge deal since Derby-rendered HTML elements will usually have no references to them once the containing component is destroyed, anyways.

This undoes 7c6d9b9, since  using dom.on was causing some undocumented breakages in code relying on on-* listeners firing as a component is being destroyed
@ericyhwang ericyhwang merged commit 308e799 into master Dec 22, 2022
@ericyhwang ericyhwang deleted the revert-7c6d9b9 branch December 22, 2022 01:37
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

Successfully merging this pull request may close these issues.

1 participant