fix: dont use id for append
This commit is contained in:
1 parent
f153cdf61a
commit
1b7fe3fcde
1 file changed
+3
-2
@@ -89,8 +89,9 @@ export class Interpreter {
|
|||||||
PopRoot() {
|
PopRoot() {
|
||||||
this.stack.pop();
|
this.stack.pop();
|
||||||
}
|
}
|
||||||
AppendChildren(id, many) {
|
AppendChildren(many) {
|
||||||
let root = this.nodes[id];
|
// let root = this.nodes[id];
|
||||||
|
let root = this.stack[this.stack.length - 1 - many];
|
||||||
let to_add = this.stack.splice(this.stack.length - many);
|
let to_add = this.stack.splice(this.stack.length - many);
|
||||||
for (let i = 0; i < many; i++) {
|
for (let i = 0; i < many; i++) {
|
||||||
root.appendChild(to_add[i]);
|
root.appendChild(to_add[i]);
|
||||||
|
|||||||
Reference in new issue
Block a user