OSDN Git Service

390aa2e3e896112ac4ae5745c73fb3d16e2b1eb0
[pettanr/pettanr.git] / app / assets / javascripts / views / speeches / summary.js.coffee
1 class Pettanr.Views.Speech.Summary extends Backbone.View\r
2   \r
3   initialize: (options) ->\r
4     @item = options.item\r
5     @speech_balloon = @item.speech_balloon()\r
6   \r
7   render: () ->\r
8     this.$el.html('')\r
9     _this = this\r
10     @speech_balloon.fetch({cache: true}).done ->\r
11       panel = _this.speech_balloon.panel()\r
12       panel.fetch({cache: true}).done ->\r
13         panel_icon = new Pettanr.Views.Common.Icon({item: panel, half: true})\r
14         _this.$el.append(panel_icon.render().el)\r
15     this\r
16   \r