backbone.marionette icon indicating copy to clipboard operation
backbone.marionette copied to clipboard

CollectionView reset event should use _removeChildModels

Open paulfalgout opened this issue 5 years ago • 0 comments

It can iterate over the reset event's previousModels This prevents a collection.reset from removing customly added views.

We should also indicate that child view was created from a collection model rather than using this._children.findByModel to account for views added from a collectionview that do not have the collection's model. We should add a custom index so that we can find children by the custom index. All of this can be private API.

paulfalgout avatar Aug 10 '18 07:08 paulfalgout