src/lib/base-state-change.js
function resetState(node) {
    _.each(node._tree.defaultState, (val, prop) => {
        node.state(prop, val);
    });

    return node;
}
function resetState(node) {
    _.each(node._tree.defaultState, (val, prop) => {
        node.state(prop, val);
    });

    return node;
}
function resetState ( node ) { _ . each ( node . _tree . defaultState , ( 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.
Reset a node s state to the tree default .