 defaults =
   items: [{a:2,b:1,c:2},{a:2,b:2,c:1},{a:1,b:1,c:1},{a:3,b:3,c:1}],
   facets: {'a': 'Title A', 'b': 'Title B', 'c': 'Title C'},
-  # resultElement: '#results'
   facetElement: '#facets'
   listItemTemplate: '<div class="facetitem" id="<%= id %>"><%= name %> <span class="facetitemcount">(<%= count %>)</span></div>'
-  orderByTemplate: '<div class=orderby><span class="orderby-title">Sort by: </span><ul><% _.each(options, function(value, key) { %>' + '<li class=orderbyitem id=orderby_<%= key %>>' + '<%= value %> </li> <% }); %></ul></div>'
   countTemplate: '<div class=facettotalcount>Results</div>'
-  deselectTemplate: '<div class=deselectstartover>Deselect all filters</div>'
   resultTemplateBypass: null
   orderByOptions:
     'a': 'by A'

  state:
    orderBy: false
    filters: {}
  showMoreTemplate: '<a id=showmorebutton>Show more</a>'
  enablePagination: true
  paginationCount: 20



  # Append deselect filters button
  # TODO - abstract into Backbone.View
  deselectTemplate = '<div class=deselectstartover>Deselect all filters</div>'
  deselect = $(deselectTemplate).click((event) ->
    settings.state.filters = {}
    jQuery.facetUpdate()
    return
