Hacker News new | ask | show | jobs
by vitorbal 5115 days 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...

1 comments

Thoughtbot 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