   uncheckNode: uncheckNode
   setCheckedIds: setCheckedIds
   getCheckedIds: getCheckedIds
-  uncheckAll: uncheckAll
+  setAllChecked: setAllChecked
   toggleChecked: toggleChecked
   addChecked: addChecked
   removeChecked: removeChecked

  docToNodeData: (doc, args) ->
    args = _.extend({
      children: true
    }, args)
    data =
      id: doc._id
      label: doc.name
    if args.children
      childrenDocs = @getChildren(doc)
      childrenData = _.map childrenDocs, @docToNodeData, @
      data.children = childrenData
    data


    @remove(toRemove)
    toRemove

  toggle: (ids, enabled) ->
    existingIds = @getIds()
    toRemove = _.intersection(existingIds, ids)
    toAdd = _.difference(ids, existingIds)
