chiasm-project / chiasm

A browser based environment for interactive data visualizations.
MIT License
184 stars 27 forks source link

Test Lifecycle Management #6

Closed curran closed 9 years ago

curran commented 9 years ago

Write unit tests that repeatedly create and destroy components, check for memory leaks, make sure all listeners are removed.

curran commented 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.