OSDN Git Service

v07
[pettanr/pettanr.git] / app / assets / javascripts / models / speech_balloon_template.js.coffee
index 0e54f78..d7dde80 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.SpeechBalloonTemplate extends Peta.Template\r
-  url: '/speech_balloon_templates/'\r
   \r
   @singular: () ->\r
     'SpeechBalloonTemplate'\r
@@ -11,18 +10,14 @@ class Pettanr.SpeechBalloonTemplate extends Peta.Template
     id: null\r
   } \r
   \r
-  system_picture: () ->\r
-    new Pettanr.SystemPicture({id: @get('system_picture_id')})\r
-  \r
-  symbol_option: () ->\r
-    i = @system_picture()\r
-    i.fetch({cache: true}).done =>\r
-      @trigger('ready:symbol', i.tmb_opt_img_tag())\r
+  @trace_routes: () ->\r
+    {\r
+      symbol: ['system_picture']\r
+    }\r
   \r
   parsed_settings: () ->\r
     JSON.parse(@get('settings'))\r
   \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
-    \r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
+  \r