initialize: (options) ->\r
super(options)\r
_this = this\r
- if i = @item[@method_name()]()\r
- i.fetch().done ->\r
- _this.picture = new Pettanr.AppHelperImg({src: i.r_url(), size: _this.icon_size()})\r
+ if @item[@method_name()]\r
+ @item[@method_name()]((pic) ->\r
+ _this.picture = pic\r
_this.render()\r
+ )\r
else\r
@picture = new Pettanr.AppHelperImg({src: '/images/error.png', size: @icon_size()})\r
_this.render()\r