gmac / backbone.epoxy

Declarative data binding and computed models for Backbone
http://epoxyjs.org
MIT License
615 stars 89 forks source link

ItemView collectionView attribute #136

Open stephen-moyer opened 8 years ago

stephen-moyer commented 8 years ago

I was looking at how a collection is handled and how ItemView is used, and saw this:

views[target.cid] = view = new ItemView({ model: target, collectionView: this.view });

However, collectionView is not actually set on the child items view. For now I am just doing this as a work around:

views[target.cid] = view = new ItemView({ model: target });
view.collectionView = this.view;