Skip to content

Instantly share code, notes, and snippets.

@uzikilon
Created March 25, 2013 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzikilon/250d8a60725c802c5db6 to your computer and use it in GitHub Desktop.
Save uzikilon/250d8a60725c802c5db6 to your computer and use it in GitHub Desktop.
var TableView = Backbone.View.extend({
initialize: function() {
this.template = _.template($('#table-row-individuals').html());
this.collection.bind('reset', this.render, this);
this.collection.bind('change', this.render, this);
}
});
var collection = new WidgetCollection([], { widgetGroup: 'individuals' });
var tableView = new TableView({collection: collection, el: $('#individuals-wo-goals-tablelist')})
collection.fetch();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment