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

No removeEventListener? #122

Open
truchi opened this issue Jan 28, 2024 · 1 comment
Open

No removeEventListener? #122

truchi opened this issue Jan 28, 2024 · 1 comment
Assignees
Labels
QUESTION Further information is requested

Comments

@truchi
Copy link

truchi commented Jan 28, 2024

Hi,

I'm just wondering, aren't event listeners removed?

Thanks

@lamiazar lamiazar added the QUESTION Further information is requested label Jan 29, 2024
@truchi
Copy link
Author

truchi commented Jan 29, 2024

I think that's because addEventListener is called in the constructor, and the handler is part of the object. I guess that does not causes circular references because there is only one reference (the element).

Can someone confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QUESTION Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants