work on optimizing web implementation
This commit is contained in:
1 parent
a61daf220d
commit
6102902387
17 files changed
+352
-298
No files matched your search
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user