(parent?: NodeTarget)
| 132 | } |
| 133 | |
| 134 | public setParent(parent?: NodeTarget) { |
| 135 | if (this._parent) this._parent._children.splice(this._parent._children.indexOf(this), 1); |
| 136 | this._parent = parent; |
| 137 | if (this._parent) this._parent._children.push(this); |
| 138 | } |
| 139 | |
| 140 | private async _disconnected() { |
| 141 | this._children.forEach(child => child.setParent(this._parent)); |
no test coverage detected