0

Backbone 0.9.2 を使用して、ビュー内のいくつかの要素のバインドを解除しようとしていますが、次のエラーが表示されます

Uncaught TypeError: 未定義のメソッド 'unbind' を呼び出せません


      console.log('+++ Kill: ', this);
        this.model.unbind( 'change', this.render, this ); // Unbind reference to the model
        this.options.parent.unbind( 'close:all', this.close, this ); // Unbind reference to the parent view     
        delete this.$el; // Delete the jQuery wrapped object variable
        delete this.el; // Delete the variable reference to this node

このエラーを解決する方法はありますか?

4

1 に答える 1