* Insert the current component after the specified component parameter. * @param {BaseComponent} component * @throws {TypeError} Object trying to add is not a component
(component)
| 21 | * @throws {TypeError} Object trying to add is not a component |
| 22 | */ |
| 23 | insertAfter(component){ |
| 24 | if(!component || !(component instanceof BaseComponent)) throw TypeError('Object trying to add is not a component.'); |
| 25 | this.insertAdjacentElement('afterend', component); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Insert the current component before the specified component parameter. |
nothing calls this directly
no outgoing calls
no test coverage detected