OSDN Git Service

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