3 ms·
you also have to somehow manage the lifecycle of your views, cleaning up after their event bindings and such. See this stackoverflow question[1] for more about
by vitorbal 14y ago
you also have to somehow manage the lifecycle of your views, cleaning up after their event bindings and such. See this stackoverflow question[1] for more about this.
[1]: http://stackoverflow.com/questions/7379263/disposing-of-view-and-model-objects-in-backbone-js http://stackoverflow.com/questions/7379263/disposing-of-view...
- bricestacey 14y agoThoughtbot wrote a lib that they bundled up as a gem that does this for you called Backbone Support. It's an easy way to get started, but you'll likely want to tweak it later :) https://github.com/thoughtbot/backbone-support https://github.com/thoughtbot/backbone-support