OSDN Git Service

fix: views
[pettanr/pettanr.git] / app / assets / javascripts / peta / leaf.js.coffee
index a9bf487..89b2ae3 100644 (file)
@@ -1,17 +1,17 @@
 class Peta.Leaf extends Peta.Content\r
   \r
-  parent_model: () ->\r
-    Manifest.manifest().models[@my_class().my_peta().parent_item_name].classify()\r
+  @parent_model: () ->\r
+    Manifest.manifest().models[@my_peta().parent_item_name].classify()\r
   \r
-  binder_model: () ->\r
+  @binder_model: () ->\r
     @parent_model()\r
   \r
-  destination_model: () ->\r
-    Manifest.manifest().models[@my_class().my_peta().destination_item_name].classify()\r
+  @destination_model: () ->\r
+    Manifest.manifest().models[@my_peta().destination_item_name].classify()\r
   \r
-  binder_key: () ->\r
+  @binder_key: () ->\r
     @my_class().my_peta().parent_item_name + '_id'\r
   \r
-  destination_key: () ->\r
+  @destination_key: () ->\r
     @my_class().my_peta().destination_item_name + '_id'\r
   \r