     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?()
+      @nodes[@getNodePId nodeData].decorateSubItemsState()
     return unless @listControllers[id]
     @addSubList nodeView, id
 


    o = @getOptions()
    listToBeAdded = @listControllers[id].getView()
    if nodeView?.$?
      nodeView.$().after listToBeAdded.$()
      listToBeAdded.parentIsInDom = yes
      listToBeAdded.propagateEvent KDEventType: 'viewAppended'

  addNode:(nodeData, index)->

    nodeData = @repairIds nodeData
    return unless nodeData
    @getData().push nodeData
    @addIndexedNode nodeData
