     items: null
     expand: false
     onNodeRender: $.noop
+    selected: false
     nodeProperties: {}
 
   properties:


  select: ($node) ->
    if $node
      $node = @tree.find('.node[data-id=' + $node ']') unless typeof $node is 'object'
      @tree.find('.node.selected').removeClass('selected')
      $node.addClass('selected')
      @tree.trigger "nodeselected", [$node, $node.data("node")]
    else
      $node = @tree.find('.node.selected')


  tree: (opts) ->
    return new Tree opts
})


