   # * filteredItemCount: The number of items that pass the fuzzy filter test.
   getEmptyMessage: (itemCount, filteredItemCount) -> 'No matches found'
 
-  # Private:
   selectPreviousItem: ->
     item = @getSelectedItem().prev()
     item = @list.find('li:last') unless item.length
     @selectItem(item)
 
-  # Private:
   selectNextItem: ->
     item = @getSelectedItem().next()
     item = @list.find('li:first') unless item.length
     @selectItem(item)
 
-  # Private:
   selectItem: (item) ->
     return unless item.length
     @list.find('.selected').removeClass('selected')
     item.addClass 'selected'
     @scrollToItem(item)
 
-  # Private:
   scrollToItem: (item) ->
     scrollTop = @list.scrollTop()
     desiredTop = item.position().top + scrollTop

# ```
module.exports =
class SelectListView extends View

  # Private:
  @content: ->
    @div class: @viewClass(), =>
      @subview 'miniEditor', new EditorView(mini: true)

  getSelectedElement: ->
    @getSelectedItem().data('select-list-element')

  confirmSelection: ->
    element = @getSelectedElement()
    if element?
