initialize: (options) ->\r
super(options)\r
@item = options.item\r
- retriever = @item.system_picture()\r
- @listenTo(retriever, 'retrieve', @retrieve_system_picture)\r
- retriever.retrieve()\r
- \r
- retrieve_system_picture: (@system_picture) ->\r
- @img = new Tag.Img({\r
- attr: {\r
- src: @system_picture.r_url()\r
- }\r
+ @item.get_parent('system_picture', this, {\r
+ success: (@system_picture) =>\r
+ @img = new Tag.Img({\r
+ attr: {\r
+ src: @system_picture.r_url()\r
+ }\r
+ })\r
+ @trigger('ready')\r
})\r
- @trigger('ready')\r
\r
render: () ->\r
this.$el.html('')\r