Closed curran closed 9 years ago
It turns out that JS Garbage Collection is good enough to remove ModelJS models and listeners when there is no longer any reference to the model. Tested using Chrome dev tools, no memory leaks when creating and destroying visualization components repeatedly.
Write unit tests that repeatedly create and destroy components, check for memory leaks, make sure all listeners are removed.