class Pettanr.Views.ScrollPanel.Summary extends Backbone.View initialize: (options) -> @item = options.item _this = this @scroll = @item.scroll() @scroll.fetch({cache: true}).done -> _this.scroll_icon = _this.scroll.icon_view(true) _this.panel = _this.item.panel() _this.panel.fetch({cache: true}).done -> _this.panel_icon = _this.panel.icon_view(true) _this.author = _this.scroll.author() _this.author.fetch({cache: true}).done -> _this.author_name = _this.author.name_view(12) _this.render() render: () -> this.$el.html('') if @author_name this.$el.append(@scroll_icon.render().el) this.$el.append(@panel_icon.render().el) this.$el.append(@author_name.render().el) this