Minionette.ModelView
is nothing more than
Minionette.View with two defaults programmed
in, #modelEvents
and #serialize()
.
modelEvents = {
change: 'render',
destroy: 'remove'
};
By default, ModelView
will listen to the change
event on the model,
and re-render. It will also listen for the destroy
event, and will
remove itself.
ModelView
's #serialize()
does nothing more than returning
this.model.attributes
, ready to be passed into #template()
.