src/data/Tree.js
function (node) {
        var parent = node.parentNode;
        while (parent) {
            if (parent === this) {
                return true;
            }
            parent = parent.parentNode;
        }
        return false;
    }
function (node) {
        var parent = node.parentNode;
        while (parent) {
            if (parent === this) {
                return true;
            }
            parent = parent.parentNode;
        }
        return false;
    }
function ( node ) { var parent = node . parentNode ; while ( parent ) { if ( parent === this ) { return true ; } parent = parent . parentNode ; } return false ; }
if this is an ancestor of another node

@public
@param {TreeNode} node another node
@return {boolean} if is ancestor
if this is an ancestor of another node