derickbailey/backbone.marionette — pull request #127 by ClemensSchneider (2012-06-07 13:03:58+00:00)
Title: fix for leaking CollectionView (does not unbind events from closed childviews)

When child-views are closed, not all references to the children are cleaned up, which can lead to increasing memory consumption over time.

I had to remove an expectation that removeItemView does not get called when closing a CollectionView but in my opinion it has to be called to cleanup the references to child-views and bindings.

This time with tests included :) Maybe I can write some for the closed-views soon