(child: ElementNode<T>)
| 185 | } |
| 186 | |
| 187 | removeChild(child: ElementNode<T>): void { |
| 188 | if (child.parentNode !== this) { |
| 189 | return; |
| 190 | } |
| 191 | |
| 192 | if (this._minInvalidChildIndex === child) { |
| 193 | this._minInvalidChildIndex = null; |
| 194 | } |
| 195 | |
| 196 | if (child.nextSibling) { |
| 197 | this.invalidateChildIndices(child.nextSibling); |
| 198 | child.nextSibling.previousSibling = child.previousSibling; |
| 199 | } |
| 200 | |
| 201 | if (child.previousSibling) { |
| 202 | child.previousSibling.nextSibling = child.nextSibling; |
| 203 | } |
| 204 | |
| 205 | if (this.firstChild === child) { |
| 206 | this.firstChild = child.nextSibling; |
| 207 | } |
| 208 | |
| 209 | if (this.lastChild === child) { |
| 210 | this.lastChild = child.previousSibling; |
| 211 | } |
| 212 | |
| 213 | child.parentNode = null; |
| 214 | child.nextSibling = null; |
| 215 | child.previousSibling = null; |
| 216 | child.index = 0; |
| 217 | |
| 218 | this.ownerDocument.markDirty(child); |
| 219 | if (this.isConnected) { |
| 220 | this.ownerDocument.queueUpdate(); |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | addEventListener(): void {} |
| 225 | removeEventListener(): void {} |
no test coverage detected