(childStumpParticle, index)
| 23900 | // todo: add tests |
| 23901 | // todo: idea, don't "paint" wall (dont append it to parent, until done.) |
| 23902 | insertHtmlParticle(childStumpParticle, index) { |
| 23903 | const { domElement } = childStumpParticle |
| 23904 | const { element } = this |
| 23905 | // todo: can we virtualize this? |
| 23906 | // would it be a "virtual shadow?" |
| 23907 | if (index === undefined) element.appendChild(domElement) |
| 23908 | else if (index === 0) element.prepend(domElement) |
| 23909 | else element.insertBefore(domElement, element.children[index]) |
| 23910 | WillowBrowser._stumpsOnPage++ |
| 23911 | this._logMessage("insert") |
| 23912 | } |
| 23913 | removeShadow() { |
| 23914 | this.element.remove() |
| 23915 | WillowBrowser._stumpsOnPage-- |
no test coverage detected