class Pettanr.ScrollPanel extends Peta.Leaf @singular: () -> 'ScrollPanel' @plural: () -> 'ScrollPanels' defaults: { id: null, scroll_id: null, panel_id: null, t: null } @pick_item_name: () -> 'panel' @traceable_item_names: () -> [] pick: (picked_item) -> { panel_id: picked_item.get('id'), } @licensed_pictures: (scroll_panels) -> panels = _.filter(scroll_panels, (sp) -> sp.has_panel() ) Pettanr.Panel.licensed_pictures(panels) has_panel: () -> if @get('panel_id') true else false initialize: (attr = {}, options = {}) -> super(attr, options)