class Pettanr.SpeechBalloonTemplate extends Peta.Template\r
- url: '/speech_balloon_templates/'\r
\r
@singular: () ->\r
'SpeechBalloonTemplate'\r
id: null\r
} \r
\r
- system_picture: () ->\r
- new Pettanr.SystemPicture({id: @get('system_picture_id')})\r
+ @trace_routes: () ->\r
+ {\r
+ symbol: ['system_picture']\r
+ }\r
\r
- symbol_option: () ->\r
- @system_picture()\r
+ parsed_settings: () ->\r
+ JSON.parse(@get('settings'))\r
+ \r
+ initialize: (attr = {}, options = {}) ->\r
+ super(attr, options)\r
\r
- initialize: () ->\r
- if @id\r
- @url = @url + @id\r
- \r
-class Pettanr.SpeechBalloonTemplate.Collection extends Backbone.Collection\r
- model: Pettanr.SpeechBalloonTemplate\r
- url: '/speech_balloon_templates'\r