engine/app/assets/javascripts/locomotive/views/snippets/list_view.js.coffee

17 lines
379 B
CoffeeScript
Raw Permalink Normal View History

2011-12-07 01:09:13 +00:00
#= require ../shared/list_view
2011-12-07 01:09:13 +00:00
Locomotive.Views.Snippets ||= {}
2011-12-07 01:09:13 +00:00
class Locomotive.Views.Snippets.ListView extends Locomotive.Views.Shared.ListView
className: 'box'
initialize: ->
@collection = new Locomotive.Models.SnippetsCollection(@options.collection)
super
2011-12-07 01:09:13 +00:00
template: ->
ich.snippets_list
2011-12-07 01:09:13 +00:00
item_view_class: ->
Locomotive.Views.Snippets.ListItemView