OSDN Git Service

fix: views
[pettanr/pettanr.git] / app / assets / javascripts / view / summary.js.coffee
index 16dba53..fae4ca3 100644 (file)
@@ -1,18 +1,8 @@
 class Pettanr.View.Summary extends Pettanr.View\r
   \r
-  constructor: (options) ->\r
+  constructor: (@item, @context, options) ->\r
     super(options)\r
   \r
   initialize: (options) ->\r
-    @clear()\r
-    @listenTo(this, 'ready', @render)\r
-  \r
-  clear: () ->\r
-    icon = new Pettanr.View.Minicon(Pettanr.View.Image.icon_loading_file())\r
-    this.$el.html(icon.render().el)\r
-    this\r
-  \r
-  render: () ->\r
-    this.$el.html('')\r
-    this\r
+    super(options)\r
   \r