OSDN Git Service

clean
[pettanr/pettanr.git] / app / assets / javascripts / views / ground_pictures / show.js.coffee
index 80ce802..3d6b3a7 100644 (file)
@@ -22,11 +22,10 @@ class Pettanr.Views.GroundPicture.Show extends Backbone.View
       caption_url: caption_url,\r
       prof_url: prof_url\r
     })\r
-    _this = this\r
     @panel = @item.panel()\r
-    @panel.fetch({cache: true}).done ->\r
-      _this.author = new Pettanr.Views.Show.HeaderAuthor({item: _this.panel})\r
-      _this.render()\r
+    @panel.fetch({cache: true}).done =>\r
+      @author = new Pettanr.Views.Show.HeaderAuthor({item: @panel})\r
+      @render()\r
   \r
   render: () ->\r
     this.$el.html('')\r