(options)
| 4 | |
| 5 | class 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected