Please feel free to use the form below to contact me.
If you’ve had the pleasure of building large applications with Backbone.js, then you probably stumbled into this problem. What happens to Views that are no longer being used? That’s the main question.
Let me give you a test scenario - what if you have your main container (a div), and that container will be populated by View content. Every time the user navigates to a new section, that main container’s content will be swapped with a new View. What happens to the old view? Well, it will be sitting there still. Can’t we just hide it, you say? Well, yeah, but then it’s still rendering all the events, based on Model changes (if it has Models bound to it).