   addNode:(nodeData, index)->
 
     nodeData = @repairIds nodeData
-
-
     return unless nodeData
     @getData().push nodeData
     @addIndexedNode nodeData


    # 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


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