MCPcopy Create free account
hub / github.com/alibaba/butterfly / constructor

Method constructor

src/node/treeNode.js:6–14  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

4
5class TreeNode extends Node {
6 constructor(options) {
7 super(options);
8 this.children = options.children;
9 this.parent = options.parent;
10 this.collapsed = options.collapsed || false;
11 if (options.isRoot) {
12 this.isRoot = options.isRoot;
13 }
14 }
15 _init(obj = {}) {
16 super._init(obj);
17 if (obj.parent) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected