           when Keys.Escape
             @trigger "core:cancel"
 
-        if e.keyCode in _.values(Keys)
+        if e.keyCode in _.values Keys
           return false
 
+  ###
+   * Re-builds the list with the current items
+   * @private
+  ###
   populateList: ->
     return unless @items?
 

    else
      @list.scrollBottom desiredBottom

  getSelectedItemView: ->
    @list.find "li.selected"

  getSelectedItem: ->
    @getSelectedItemView().data "select-list-item"

  confirmSelection: ->
    item = @getSelectedItem()
    if item?

      @ol class: "list-group", outlet: "list"

  ###
   * Listens to events, delegates them to instance methods
   * @private
  ###
  initialize: ->
    # Core events for keyboard handling
    @on "core:move-up", (e) => @selectPreviousItemView()
    @on "core:move-down", => @selectNextItemView()
    @on "core:confirm", => @confirmSelection()
    @on "core:cancel", => @cancel()

    # List mouse events
    @list.on "mousedown", "li", (e) =>
      e.preventDefault()
      e.stopPropagation()
