dataarts / dat.gui

Lightweight controller library for JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yokotsumo opened this issue · comments

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.