@visible = new Tag.Div({\r
content: Pettanr.AppHelper.t_selected_item(@visible_t, @item.get(@visible_column_name))\r
})\r
- _this = this\r
@author = @item.author()\r
- @author.fetch({cache: true}).done ->\r
- _this.author_icon_with_caption = _this.author.icon_with_caption_view(true, 'name', 12)\r
- _this.render()\r
+ @author.fetch({cache: true}).done =>\r
+ @author_icon_with_caption = @author.icon_with_caption_view(true, 'name', 12)\r
+ @render()\r
\r
render: () ->\r
this.$el.html('')\r
@item = options.item\r
@binder_item_name = options.binder_item_name\r
@destination_item_name = options.destination_item_name\r
- _this = this\r
@binder = @item[@binder_item_name]()\r
- @binder.fetch({cache: true}).done ->\r
- _this.binder_icon = _this.binder.icon_view(true)\r
- _this.binder_author = _this.binder.author()\r
- _this.binder_author.fetch({cache: true}).done ->\r
- _this.binder_author_icon_with_caption = _this.binder_author.icon_with_caption_view(true, 'name', 12)\r
- _this.render()\r
+ @binder.fetch({cache: true}).done =>\r
+ @binder_icon = @binder.icon_view(true)\r
+ @binder_author = @binder.author()\r
+ @binder_author.fetch({cache: true}).done =>\r
+ @binder_author_icon_with_caption = @binder_author.icon_with_caption_view(true, 'name', 12)\r
+ @render()\r
@destination = @item[@destination_item_name]()\r
- @destination.fetch({cache: true}).done ->\r
- _this.destination_icon = _this.destination.icon_view(true)\r
- _this.destination_author = _this.destination.author()\r
- _this.destination_author.fetch({cache: true}).done ->\r
- _this.destination_author_icon_with_caption = _this.destination_author.icon_with_caption_view(true, 'name', 12)\r
- _this.render()\r
+ @destination.fetch({cache: true}).done =>\r
+ @destination_icon = @destination.icon_view(true)\r
+ @destination_author = @destination.author()\r
+ @destination_author.fetch({cache: true}).done =>\r
+ @destination_author_icon_with_caption = @destination_author.icon_with_caption_view(true, 'name', 12)\r
+ @render()\r
\r
render: () ->\r
this.$el.html('')\r