OSDN Git Service

ad0930ee399c0fa7f81c8e978755cee0d8e8c64b
[pettanr/pettanr.git] / app / assets / javascripts / views / balloons / summary.js.coffee
1 class Pettanr.Views.Balloon.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     @speech_balloon.fetch({cache: true}).done =>\r
10       panel = @speech_balloon.panel()\r
11       panel.fetch({cache: true}).done =>\r
12         panel_icon = new Pettanr.Views.Common.Icon({item: panel, half: true})\r
13         this.$el.append(panel_icon.render().el)\r
14     this\r
15   \r