OSDN Git Service

merge
[pettanr/pettanr.git] / app / assets / javascripts / views / pictures / credit_icon.js.coffee
1 class Pettanr.Views.Picture.CreditIcon extends Pettanr.View\r
2   tagName: 'span'\r
3   className: 'credit-icon'\r
4   \r
5   initialize: (options) ->\r
6     @item = options.item\r
7   \r
8   render: () ->\r
9     this.$el.html('')\r
10     symbol_button = @item.symbol_button({\r
11       context: this,\r
12       click: () =>\r
13         @trigger('click')\r
14     })\r
15     this.$el.append(symbol_button.render().el)\r
16     this\r
17   \r