mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 02:42:13 +00:00
Implemented (#16)
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
6eb91f57a6
commit
08ffa73b69
@ -203,4 +203,11 @@ export default class DOMElement<T extends HTMLElement = HTMLElement> {
|
||||
return this.placeAsChildOf(item)
|
||||
}
|
||||
}
|
||||
|
||||
public appendChild(item: DOMElement | HTMLElement) {
|
||||
if (item instanceof DOMElement) {
|
||||
item = item.item
|
||||
}
|
||||
this.item.appendChild(item)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user