OSDN Git Service

change: cache system
[pettanr/pettanr.git] / app / assets / javascripts / models / comic_story.js.coffee
index b78c459..bfbab1e 100644 (file)
@@ -15,10 +15,10 @@ class Pettanr.ComicStory extends Peta.Leaf
   } \r
   \r
   comic: () ->\r
-    new Pettanr.Comic({id: @get('comic_id')})\r
+    new Pettanr.Cache.Retriever(Pettanr.Comic, @get('comic_id'))\r
   \r
   story: () ->\r
-    new Pettanr.Story({id: @get('story_id')})\r
+    new Pettanr.Cache.Retriever(Pettanr.Story, @get('story_id'))\r
   \r
   has_story: () ->\r
     if @get('story_id')\r