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

dat.GUI destroy() does not remove window resize listener #299

Open
yokotsumo opened this issue Jun 6, 2021 · 0 comments
Open

dat.GUI destroy() does not remove window resize listener #299

yokotsumo opened this issue Jun 6, 2021 · 0 comments

Comments

@yokotsumo
Copy link

yokotsumo commented Jun 6, 2021

I have to destroy and recreate the dat.GUI to change text language.
I use the destroy() method.
When I look at the chrome dev tools, the number of window.'resize' listeners from dat.GUI doubles each time and the memory usage increases.
I can not find a way to avoid this or destroy the listeners.

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