()
| 39 | } |
| 40 | |
| 41 | remove() { |
| 42 | if (!this.parent) { |
| 43 | return; |
| 44 | } |
| 45 | const index = this.parent.children.indexOf(this); |
| 46 | if (index >= 0) { |
| 47 | this.parent.children.splice(index, 1); |
| 48 | } |
| 49 | this.parent = null; |
| 50 | } |
| 51 | |
| 52 | addEventListener(type: string, listener: FakeListener) { |
| 53 | const existing = this.listeners.get(type) ?? []; |
no outgoing calls
no test coverage detected