work on optimizing web implementation

This commit is contained in:
Evan Almloff committed 2022-12-06 14:24:35 -06:00
1 parent a61daf220d
commit 6102902387
17 files changed
+352 -298

No files matched your search

+2 -2
View File
@@ -92,8 +92,8 @@ export class Interpreter {
PopRoot() {
this.stack.pop();
}
AppendChildren(many) {
let root = this.stack[this.stack.length - (1 + many)];
AppendChildren(id, many) {
let root = this.nodes[id];
let to_add = this.stack.splice(this.stack.length - many);
for (let i = 0; i < many; i++) {
root.appendChild(to_add[i]);