     ignoreNavigation = false
     return null
 
-
-
+  # Module return
   {
     create: createTree
     update: updateTree

    holder = []
    holder.unshift top
    window.bodything = body
    tally = 0
    helper.depthFirstWalk body, (depth) ->
      node = this
      if not node.getAttribute?
        return false
      id = node.getAttribute('id')
      if not id
        node.setAttribute('id', tinymce.DOM.uniqueId('t_'))
        id = node.getAttribute('id')
      while depth < (holder.length - 1)
        holder.shift()
      title = node.getAttribute('data-xmlel') || ("[" + node.localName + "]")
      holder[0]['children'] ||= []
      holder[0]['state'] ||= 'closed'
      holder[0]['children'].push {
        'data': title,
        'attr': {
          name: id,
          class: node.getAttribute('class')
        }
      }
      tally += 1
      if (depth) <= holder.length - 1
        holder.unshift holder[0]['children'][holder[0]['children'].length - 1]
    $(selector).jstree({
      json_data: {
        data: [window.topcontainer]

        animation: 0
      },
      plugins: ['json_data', 'ui', 'themes']
      }).on('select_node.jstree', _selectNodeHandlerGenerator(editor))
    
  navigateTree = (editor, controlmanager, node) ->
    ignoreNavigation = true
