OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / view / summary.js.coffee
diff --git a/app/assets/javascripts/view/summary.js.coffee b/app/assets/javascripts/view/summary.js.coffee
new file mode 100644 (file)
index 0000000..a4e3aeb
--- /dev/null
@@ -0,0 +1,18 @@
+class Pettanr.View.Summary extends Pettanr.View\r
+  \r
+  constructor: (options) ->\r
+    super(options)\r
+  \r
+  initialize: (options) ->\r
+    @clear()\r
+    @listenTo(this, 'ready', @render)\r
+  \r
+  clear: () ->\r
+    icon = new Pettanr.Views.Common.LoadIcon()\r
+    this.$el.html(icon.render().el)\r
+    this\r
+  \r
+  render: () ->\r
+    this.$el.html('')\r
+    this\r
+  \r