         @span class: 'badge', outlet: 'loadingBadge'
       @ol class: 'list-group', outlet: 'list'
 
-  # Private:
   @viewClass: -> 'select-list'
 
   maxItems: Infinity

  # * element: The selected model element.
  confirmed: (element) ->

  # Private:
  attach: ->
    @storeFocusedElement()

  # Private:
  storeFocusedElement: ->
    @previouslyFocusedElement = $(':focus')

  # Private:
  restoreFocus: ->
    if @previouslyFocusedElement?.isOnDom()
      @previouslyFocusedElement.focus()
    else
      atom.workspaceView.focus()

  # Private:
  cancelled: ->
    @miniEditor.getEditor().setText('')
    @miniEditor.updateDisplay()

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

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