|
|
|
|
|
by tgriesser
5046 days ago
|
|
With regards to view cleanup code in Backbone - in the github develop branch [1], the view is now a little more active in its memory cleanup. A dispose() function was recently added which removes any handlers added in the view's 'events' object, as well as any collection or model listeners where the view is passed as the third argument (callback context). This function is also called by the view's .remove(), taking care of the majority of basic memory cleanup needs when the element is cleared from the screen. [1]: https://github.com/documentcloud/backbone/commit/3ae1af6df1b... |
|
[1]: https://github.com/onsi/coccyx