class Pettanr.Balloon extends Peta.Element\r
- url: '/balloons/'\r
\r
@singular: () ->\r
'Balloon'\r
r: 0\r
} \r
\r
- speech_balloon: () ->\r
- new Pettanr.SpeechBalloon({id: @get('speech_balloon_id')})\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
+ {\r
+ speech_balloon_template_id: speech_balloon_template.get('id'),\r
+ speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
+ }\r
\r
r_url: () ->\r
'/system_pictures/' + @system_picture().filename()\r
\r
- symbol_option: (cb) ->\r
- sb = @speech_balloon()\r
- sb.fetch().done ->\r
- sbt = sb.speech_balloon_template()\r
- sbt.fetch().done ->\r
- sp = sbt.system_picture()\r
- sp.fetch().done ->\r
- cb(sp.tmb_opt_img_tag())\r
- \r
- initialize: () ->\r
- if @id\r
- @url = @url + @id\r
- \r
-class Pettanr.Balloon.Collection extends Backbone.Collection\r
- model: Pettanr.Balloon\r
- url: '/balloons'\r
-\r
+ plain_scenario: () ->\r
+ ''\r
+ \r
+ initialize: (attr, options) ->\r
+ super(attr, options)\r
+ \r