I have a Backbone view with a model.
Additionally I have a global model holding some application specific stuff.
Now I’m binding the change event of this model to my view’s render method but this doesn’t seem to work.
model: new Preferences.Item(),
render: function() {
$(that.el).html(template(that.model.toJSON()));
},
initialize : function() {
this.render = _.bind(this.render, this);
// global account model holder
App.Storage.account.bind("change", this.render);
},
Must I do some specific binding to attach to the events of an external model?
Found the solution … you must call: