OSDN Git Service

clean
[pettanr/pettanr.git] / app / assets / javascripts / views / panels / summary.js.coffee
index 78e0a6a..30a7f13 100644 (file)
@@ -9,11 +9,10 @@ class Pettanr.Views.Panel.Summary extends Backbone.View
     @visible = new Tag.Div({\r
       content: Pettanr.AppHelper.t_selected_item(@visible_t, @item.get(@visible_column_name))\r
     })\r
-    _this = this\r
     @author = @item.author()\r
-    @author.fetch({cache: true}).done ->\r
-      _this.author_icon_with_caption = _this.author.icon_with_caption_view(true, 'name', 12)\r
-      _this.render()\r
+    @author.fetch({cache: true}).done =>\r
+      @author_icon_with_caption = @author.icon_with_caption_view(true, 'name', 12)\r
+      @render()\r
   \r
   render: () ->\r
     this.$el.html('')\r