I have a collection which is rendered by a Backbone Marionette item view. The view is being re-rendered whenever the collection is reset. As far as I can work out, that is default Backbone.Marionette behaviour. Is there a way I can disable it?
var ActiveWordView = M.ItemView.extend({
template: '#active-word-template',
tagName: 'form',
onRender: function() {
// This is being triggered when the collection resets, even
// though I didn't specify that behaviour in an initializer.
console.log("Active word re-rendered");
}
});
var activeWordView = new ActiveWordView({
collection: this.model.get('words'),
});
this.activeWordRegion.show(activeWordView);