           items: @createContextMenu
         plugins: ["contextmenu"]
 
+      return tree
+
     render: () ->
       @$toolbar = @renderToolbar()
       @$tree = @renderTree()

          "<span style=\"color:#{color}\">#{value}</span>"
        ])

      @node(html.join(""), "", icon, children)

    isRef: (obj) ->
      _.isObject(obj) and (_.isEqual(_.keys(obj), ["id", "type"]) or


      @_base

    resolve_ref: (ref) ->
      @base().Collections(ref.type).get(ref.id)

    delegateEvents: (events) ->
      super(events)

