-class Pettanr.Views.ScrollPanel.Summary extends Backbone.View\r
+class Pettanr.Views.ScrollPanel.Summary extends Pettanr.View.Summary.Leaf\r
\r
initialize: (options) ->\r
- @item = options.item\r
- _this = this\r
- @scroll = @item.scroll()\r
- @scroll.fetch({cache: true}).done ->\r
- _this.scroll_icon = _this.scroll.icon_view(true)\r
- _this.panel = _this.item.panel()\r
- _this.panel.fetch({cache: true}).done ->\r
- _this.panel_icon = _this.panel.icon_view(true)\r
- _this.author = _this.scroll.author()\r
- _this.author.fetch({cache: true}).done ->\r
- _this.author_name = _this.author.name_view(12)\r
- _this.render()\r
- \r
- render: () ->\r
- this.$el.html('')\r
- if @author_name\r
- this.$el.append(@scroll_icon.render().el)\r
- this.$el.append(@panel_icon.render().el)\r
- this.$el.append(@author_name.render().el)\r
- this\r
+ options['binder_item_name'] = 'scroll'\r
+ options['destination_item_name'] = 'panel'\r
+ super(options)\r
\r