In my initialize function of a CollectionView Backbone Marionette object, I'm doing the following:
this.collection_addresses = new AddressCollectionView({
el: 'ul.addresses',
collection: options.user.get("addresses")
});
However the AddressCollectionView
is never updated whenever the object referenced in options.user.get("addresses")
is changed, I thought Marionnette is handling this automatically. The user object is updated using a fetch. Any thoughts?
Edit #1 Just to clarify the collection view is like this
var AddressCollectionView = Backbone.Marionette.CollectionView.extend({
itemView: AddressItemView,
tagName: 'ul'
});
Thanks.