\r
initialize: (options) ->\r
super(options)\r
- if @item[@method_name()]\r
- @item[@method_name()]()\r
\r
+ # not render\r
+ # get symbol data and send message\r
render: () ->\r
- if @item.symbol_picture\r
- this.$el.html(@item.symbol_picture.render().el)\r
- else\r
- picture = new Pettanr.Image.SymbolImg({\r
- attr: {\r
- src: '/images/error.png'\r
- }\r
- })\r
- this.$el.html(picture.render().el)\r
+ if @item[@method_name()]\r
+ @listenTo(@item, 'ready:symbol', @ready_symbol)\r
+ @item[@method_name()]()\r
this\r
\r
method_name: () ->\r
@my_manifest.method_name\r
\r
+ ready_symbol: (symbol) ->\r
+ @trigger('ready:symbol', symbol)\r
+ \r