Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

removing a view as a result of a collection reset doesn't clean up child views #273

Closed
carpeliam opened this issue Nov 14, 2013 · 1 comment

Comments

@carpeliam
Copy link

When using a CollectionView, resetting the collection removes child views from view but does not call their "destroyed" callback.

Here's an example: http://jsfiddle.net/8HN6q/. Clicking on any of the "remove me" button will remove models from the collection individually and call that view's destroyed callback; clicking on the "clear" button will reset the collection and remove the views, but without calling the "destroyed" callback.

@ghost ghost assigned eastridge Nov 14, 2013
@eastridge
Copy link
Contributor

@carpeliam thanks for the fiddle, we'll look into this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants