News for hackers. Stuff that matters.
Re:How to Structure and Render Views in Backbone by _greim_ on Tuesday March 18, 2014 @07:14PM (#7425745)
This simple extension:

https://github.com/greim/Backbone-Subscriptions

...eliminates much of the need to clean up the kinds of event handlers that prevent views from being GC'd. Essentially, it contrives things such that the references preventing views from being GC'd consist in the DOM itself, so that when a node drops out of the DOM, views attached to it are automatically free to be GC'd. Serves our purposes rather well.

There are no comments on this comment yet.