OSDN Git Service

fix:new elm
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 09cfeaf..eff2800 100644 (file)
@@ -9,19 +9,34 @@ class Pettanr.GroundColor extends Peta.Element
   \r
   defaults: {\r
     id: null,\r
-    code: 0,\r
+    code: 0xeeeeee,\r
+    orientation: 0\r
   } \r
   \r
+  @pick_item_name: () ->\r
+    'ground_color'\r
+  \r
+  @traceable_item_names: () ->\r
+    []\r
+  \r
+  pick: (picked_item) ->\r
+    {\r
+    }\r
+  \r
   @has_picture: () ->\r
     false\r
   \r
+  @pick_item_name: () ->\r
+    ''\r
+  \r
   panel: () ->\r
-    new Pettanr.Panel({id: @get('panel_id')})\r
+    new Pettanr.Cache.Retriever(Pettanr.Panel, @get('panel_id'))\r
   \r
   element_face: () ->\r
     new Pettanr.Views.GroundColor.ElementFace({element: this})\r
   \r
-  initialize: () ->\r
+  initialize: (attr, options) ->\r
+    super(attr, options)\r
     if @id\r
       @url = @url + @id\r
   \r