After I change an input text field that corresponds to a single attribute in an ItemView
, I update all models in my CompositeView
.
The update works fine in the models, but only the ItemView corresponding to the last edited input text field displays new attributes in the DOM, as it's the only element in the CompositeView
that's getting its onRender
method called:
onRender: function() {
this.$el.html(this.template(this.model.toJSON()));
return this;
}
I want to call the onRender()
function again in all the ItemViews
inside the CompositeView
. How can I do this?