私はモデルのバックボーンビューを持っています。外部モデルのバインドへのバインド
さらに、私はいくつかのアプリケーション固有のものを保持しているグローバルモデルを持っています。
このモデルの変更イベントをビューのレンダリングメソッドにバインドしていますが、これは機能していないようです。
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);
},
外部モデルのイベントにアタッチするためのバインディングを行う必要がありますか?