       multiSelect: false
       selectable: true
       checkboxes: false
+      recursiveCheck: true
     }, template.data.settings)
   template.settings
 

    checkboxes.push($checkbox)
    $checkbox.prop('checked', template.check.contains(node.id))
    $checkbox.on 'click', (e) -> e.stopPropagation()
    $checkbox.on 'change', ->
      isChecked = $checkbox.is(':checked')
      id = node.id
      if isChecked
        checkNode($tree, id)
      else
        uncheckNode($tree, id)
  $selectRow = $('<div class="jqtree-select-row"></div>')
  $('.jqtree-element', $em).append($selectRow)



uncheckNode = (domNode, id) -> removeChecked(domNode, [id])

getCheckbox = (domNode, id) ->
  $tree = getTreeElement(domNode)
  node = getNode($tree, id)
  $('> .jqtree-element > .checkbox', node.element)

_checkNode = (domNode, id) -> getCheckbox(domNode, id).prop('checked', true)

_uncheckNode = (domNode, id) -> getCheckbox(domNode, id).prop('checked', false)

isNodeChecked = (domNode, id) -> getCheckbox(domNode, id).prop('checked')

####################################################################################################
# AUXILIARY
