OSDN Git Service

operator move to cache
[pettanr/pettanr.git] / app / assets / javascripts / models / picture.js.coffee
index 9bc47c2..46e3598 100644 (file)
@@ -11,7 +11,7 @@ class Pettanr.Picture extends Peta.Content
     id: null\r
   } \r
   \r
-  is_visible: (operators) ->\r
+  is_visible: (operators = Pettanr.cache.operators) ->\r
     return true\r
   \r
   filename: () ->\r
@@ -73,7 +73,7 @@ class Pettanr.Picture extends Peta.Content
     else\r
       ['', 'v', 'h', 'vh']\r
   \r
-  is_showable: (operators = null) ->\r
+  is_showable: (operators = Pettanr.cache.operators) ->\r
     return false if not @original_picture()\r
     return true if @is_own(operators)\r
     #@is_enable() and @is_head()\r