   #
   selectAll: ->
     return unless @allowsSelection and @allowsMultipleSelection
-    elements = ($ @el).find "li:not(.selected)"
+    elements = ($ @el).find "ul.list-view-items-container > li.list-view-item:not(.selected)"
     _.each elements, @selectAnother
 
   #
   # Restores the selection after a re-rendering.
   #
   restoreSelection: =>
-    elements = ($ @el).find "li"
+    elements = ($ @el).find "ul.list-view-items-container > li.list-view-item"
     _.each elements, (element) =>
       model = ($ element).data("model")
       if model in @_selected.models

  #
  onMouseDown: (event) =>
    # Get the list item element
    element = if ($ event.target).is("li") then event.target else ($ event.target).parents("li") 

    # Clear the selection if the user clicks in the list container.
    @clearSelection() if @allowsDeselection and event.target.tagName == "UL"

    indexes[1] += 1

    # Select the elements in the requested indexes.
    elements = ($ @el).find("li.list-view-item").slice indexes...
    _.each elements, @selectAnother

  #
