Skip to content

Instantly share code, notes, and snippets.

@yornaath
Created September 29, 2014 09:11
Show Gist options
  • Save yornaath/312ba77597e62bb783f5 to your computer and use it in GitHub Desktop.
Save yornaath/312ba77597e62bb783f5 to your computer and use it in GitHub Desktop.
TableRowView backbone.View.extend({})
TableView = backbone.View.extend({
TableRowViewClass: TableRowView,
render: function() {
this.collection.forEach(function(model) {
itemview = new this.TableRowViewClass()
})
}
})
CustomerTableRowView = TableRowView.extend({})
CustomerTableView = TableView.extend({
TableRowViewClass: CustomerTableRowView
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment