function resetState(node) {
    each(node._tree.defaultState, function (val, prop) {
      node.state(prop, val);
    });
    return node;
  }
Reset a node's state to the tree default.

@private
@param {TreeNode} node Node object.
@returns {TreeNode} Node object.