big update
This commit is contained in:
@@ -60,12 +60,12 @@ function createChildren(children: any[]): Node[] {
|
||||
if (Array.isArray(child)) {
|
||||
childrenNodes.push(...createChildren(child));
|
||||
}
|
||||
else if (typeof child === "string") {
|
||||
childrenNodes.push(document.createTextNode(String(child)));
|
||||
}
|
||||
else if (child instanceof Node) {
|
||||
childrenNodes.push(child);
|
||||
}
|
||||
else {
|
||||
childrenNodes.push(document.createTextNode(String(child)));
|
||||
}
|
||||
}
|
||||
return childrenNodes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user