dist/treenode.js
function addChild(data) {
                var child = new TreeNode(data, this);
                if (!this.children) {
                    this.children = [];
                }
                this.children.push(child);
                return child;
            }
function addChild(data) {
                var child = new TreeNode(data, this);
                if (!this.children) {
                    this.children = [];
                }
                this.children.push(child);
                return child;
            }
function addChild ( data ) { var child = new TreeNode ( data , this ) ; if ( ! this . children ) { this . children = [ ] ; } this . children . push ( child ) ; return child ; }
Add child. Returns the newly created child.
@param data
@returns {TreeNode}
Add child . Returns the newly created child .