OSDN Git Service

fix: finder
[pettanr/pettanr.git] / app / assets / javascripts / models / balloon.js.coffee
index d4a5040..9136fa0 100644 (file)
@@ -15,6 +15,12 @@ class Pettanr.Balloon extends Peta.Element
     r: 0\r
   } \r
   \r
+  @trace_routes: () ->\r
+    {\r
+      speech_balloon: 'speech_balloon',\r
+      symbol: ['speech_balloon', 'speech_balloon_template', 'system_picture']\r
+    }\r
+  \r
   pick: () ->\r
     # \r
     speech_balloon_template = @templates.speech_balloon_template\r
@@ -23,32 +29,11 @@ class Pettanr.Balloon extends Peta.Element
       speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
     }\r
   \r
-  speech_balloon: () ->\r
-    new Pettanr.Cache.Retriever(Pettanr.SpeechBalloon, @get('speech_balloon_id'))\r
-  \r
-  system_picture: () ->\r
-    new Pettanr.Cache.Retriever(Pettanr.SystemPicture, @get('system_picture_id'))\r
-  \r
   r_url: () ->\r
     '/system_pictures/' + @system_picture().filename()\r
   \r
-  symbol_option: () ->\r
-    retriever = @speech_balloon()\r
-    @listenTo(retriever, 'retrieve', @retrieve_speech_balloon)\r
-    retriever.retrieve()\r
-  \r
-  retrieve_speech_balloon: (speech_balloon) -> \r
-    retriever = speech_balloon.speech_balloon_template()\r
-    @listenTo(retriever, 'retrieve', @retrieve_speech_balloon_template)\r
-    retriever.retrieve()\r
-  \r
-  retrieve_speech_balloon_template: (speech_balloon_template) -> \r
-    retriever = speech_balloon_template.system_picture()\r
-    @listenTo(retriever, 'retrieve', @retrieve_system_picture)\r
-    retriever.retrieve()\r
-  \r
-  retrieve_system_picture: (system_picture) -> \r
-    @trigger('ready:symbol', system_picture.tmb_opt_img_tag())\r
+  plain_scenario: () ->\r
+    ''\r
   \r
   initialize: (attr, options) ->\r
     super(attr, options)\r