Memory management in Backbone.js: Painlessly removing views
It would be great if Backbone provided more tools or guidelines for garbage collecting views after leaving them, so that DOM nodes and event bindings are automatically removed. Don’t get me wrong…the events hash, undelegateEvents(), stopListening(), etc. are very helpful, but they’re hardly sufficient on their own. The solution I’ve implemented stands on the shoulders[...]