OSDN Git Service

fix: views
[pettanr/pettanr.git] / app / assets / javascripts / views / licenses / summary.js.coffee
index 53140ca..d2c7f6a 100644 (file)
@@ -2,15 +2,14 @@ class Pettanr.Views.License.Summary extends Pettanr.View.Summary
   \r
   initialize: (options) ->\r
     super(options)\r
-    @item = options.item\r
+  \r
+  render: () ->\r
+    super()\r
     @item.get_parent('system_picture', this, {\r
       success: (@system_picture) =>\r
-        @img = new Pettanr.View.Icon(@system_picture.symbol_file())\r
-        @trigger('ready')\r
+        this.$el.html('')\r
+        @img = @system_picture.real_picture()\r
+        this.$el.html(@img.render().el)\r
     })\r
-  \r
-  render: () ->\r
-    this.$el.html('')\r
-    this.$el.html(@img.render().el)\r
     this\r
   \r