バックボーンUIテーブルをレンダリングしようとすると、「Uncaught TypeError:Undefinedのメソッド'table'を呼び出せません」というメッセージが表示されます。私は単にウェブサイトからサンプルテーブルをレンダリングしようとしています。el変数の設定を探してみましたが、何も機能していないようです。どんな助けでも大歓迎です。コード例は以下のとおりです。バックボーンUIテーブルビューに表示しようとしている単純なコレクション。バックボーン-ui.js内のrenderメソッドでJSエラーが発生します
window.regions = new Backbone.Collection([{
name: 'Americas',
notes: 'Bright'
}, {
name: 'Africa',
notes: 'Fruity'
}]);
var table = new Backbone.UI.TableView({
el: $('#table_container'),
sortable: true,
model: regions,
columns: [{
title: 'Name',
content: 'name'
}, {
title: 'Notes',
content: 'notes'
}]
}).render();