   #
   # This method should be overridden by subclasses.
   #
-  # * element: The selected model element.
+  # element - The selected model element.
   confirmed: (element) ->
 
   attach: ->

  #
  # Subclasses may override this method to customize the message.
  #
  # * itemCount: The number of items in the array specified to {.setArray}
  # * filteredItemCount: The number of items that pass the fuzzy filter test.
  getEmptyMessage: (itemCount, filteredItemCount) -> 'No matches found'

  selectPreviousItem: ->


  # Public: Set the array of items to display in the list.
  #
  # array - The {Array} of model elements to display in the list.
  setArray: (@array=[]) ->
    @populateList()
    @setLoading()

  # Public: Set the error message to display.
  #
  # message - The {String} error message (default: '').
  setError: (message='') ->
    if message.length is 0
      @error.text('').hide()
