Skip to content

Commit

Permalink
fixed for compatibility with backbone 1.1.0, added sync to render_row…
Browse files Browse the repository at this point in the history
…s listeners
  • Loading branch information
andyperlitch committed Oct 17, 2013
1 parent fdc966a commit 72303f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -86,7 +86,7 @@ var Tabled = BaseView.extend({
// if ( !(this.collection instanceof Backbone.Collection) ) throw new Error("Tabled must be provided with a backbone collection as its data");

// Config object
this.config = new ConfigModel(this.options);
this.config = new ConfigModel(options);

// Columns
this.columns = new Columns(this.config.get("columns"),{config: this.config});
Expand Down
2 changes: 1 addition & 1 deletion lib/Tbody.js
Expand Up @@ -28,7 +28,7 @@ var Tbody = BaseView.extend({
initialize: function(options) {
this.columns = options.columns;
this.config = this.columns.config;
this.listenTo(this.collection, "reset sort", this.render);
this.listenTo(this.collection, "reset sort sync", this.render);
// this.listenTo(this.collection, "update", this.render); // commented out because 'sort' event gets called anyway on update
this.listenTo(this.config, "update change:offset", this.render);
this.listenTo(this.columns, "change:width", this.adjustColumnWidth );
Expand Down

0 comments on commit 72303f6

Please sign in to comment.