 
   expand:(nodeView)->
 
-    if nodeView?.getData?
-      nodeData = nodeView.getData()
-      nodeView.expand()
-      @listControllers[@getNodeId nodeData]?.getView().expand()
+    nodeData = nodeView.getData()
+    nodeView.expand()
+    @listControllers[@getNodeId nodeData]?.getView().expand()
 
   collapse:(nodeView)->
 


    # if node parent is present
    parentNodeView = @nodes[@getNodePId nodeData]
    if parentNodeView?.getData?
      prevNeighbor  = getPreviousNeighbor parentNodeView.getData()
      neighborIndex = @indexedNodes.indexOf prevNeighbor
      @indexedNodes.splice neighborIndex + 1, 0, nodeData

    nodeData = nodeView.getData()
    nodeView.$().attr "draggable","true" if @getOptions().dragdrop
    {id, parentId} = nodeData
    @nodes[@getNodeId nodeData] = nodeView
    if @nodes[@getNodePId nodeData]
      @expand @nodes[@getNodePId nodeData] unless @getOptions().addListsCollapsed
      # todo: make decoration with events
      @nodes[@getNodePId nodeData].decorateSubItemsState()
    return unless @listControllers[id]
    @addSubList nodeView, id

