     @emit "UnregisteringItem", itemInfo
     {index, view} = itemInfo
     actualIndex = if @getOptions().lastToFirst then @getListView().items.length - index - 1 else index
-    @itemsOrdered.splice actualIndex, 1
+    @getListItems().splice actualIndex, 1
     if view.getData()?
       delete @itemsIndexed[view.getItemDataId()]
 


  getItemsOrdered:-> @itemsOrdered

  getItemCount:-> @itemsOrdered.length

  setListView:(listView)-> @listView = listView


    direction         = if event.which is 40 then "down" else "up"
    addend            = if event.which is 40 then 1 else -1

    items = @getListItems()

    selectedIndex     = items.indexOf @selectedItems[0]
    lastSelectedIndex = items.indexOf @selectedItems[@selectedItems.length - 1]

    if items[selectedIndex + addend]
      unless event.metaKey or event.ctrlKey or event.shiftKey
        # navigate normally if meta key is NOT pressed
        @selectItem items[selectedIndex + addend]
      else
        # take extra actions if meta key is pressed
        if @selectedItems.indexOf(items[lastSelectedIndex + addend]) isnt -1
          # to be deselected item is in @selectedItems
          if items[lastSelectedIndex]
            @deselectSingleItem items[lastSelectedIndex]
        else
          # to be deselected item is NOT in @selectedItems
          if items[lastSelectedIndex + addend ]
            @selectSingleItem items[lastSelectedIndex + addend ]

  selectNextItem:(item, event)->

    items = @getListItems()

    [item] = @selectedItems unless item
    selectedIndex = items.indexOf item
    @selectItem items[selectedIndex + 1]

  selectPrevItem:(item, event)->

    items = @getListItems()

    [item] = @selectedItems unless item
    selectedIndex = items.indexOf item
    @selectItem items[selectedIndex + -1]


  deselectAllItems:->
