OSDN Git Service

clean
[pettanr/pettanr.git] / app / assets / javascripts / views / speeches / summary.js.coffee
index 390aa2e..0b10eef 100644 (file)
@@ -6,11 +6,10 @@ class Pettanr.Views.Speech.Summary extends Backbone.View
   \r
   render: () ->\r
     this.$el.html('')\r
-    _this = this\r
-    @speech_balloon.fetch({cache: true}).done ->\r
-      panel = _this.speech_balloon.panel()\r
-      panel.fetch({cache: true}).done ->\r
+    @speech_balloon.fetch({cache: true}).done =>\r
+      panel = @speech_balloon.panel()\r
+      panel.fetch({cache: true}).done =>\r
         panel_icon = new Pettanr.Views.Common.Icon({item: panel, half: true})\r
-        _this.$el.append(panel_icon.render().el)\r
+        this.$el.append(panel_icon.render().el)\r
     this\r
   \r