Skip to content

Commit

Permalink
add AngryCatsView
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsulc committed Apr 13, 2012
1 parent eca682e commit 24d7bc2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ AngryCatView = Backbone.Marionette.ItemView.extend({
tagName: 'tr',
className: 'angry_cat'
});

AngryCatsView = Backbone.Marionette.CompositeView.extend({
tagName: "table",
id: "angry_cats",
className: "table-striped table-bordered",
template: "#angry_cats-template",
itemView: AngryCatView,

appendHtml: function(collectionView, itemView){
collectionView.$("tbody").append(itemView.el);
}
});

0 comments on commit 24d7bc2

Please sign in to comment.