Move some global variables in the interpreter into locals in the interpreter

This commit is contained in:
Evan Almloff committed 2024-02-27 15:15:12 -06:00
1 parent 0c4c0e70e5
commit fe839ab347
2 files changed
+12 -19

No files matched your search

+3 -5
View File
@@ -232,16 +232,14 @@ this.LoadChild = function (array) {
this.listeners = new ListenerMap();
this.nodes = [];
this.stack = [];
this.root;
this.templates = {};
this.els = null;
this.end = null;
this.AppendChildren = function (id, many) {
this.root = this.nodes[id];
this.els = this.stack.splice(this.stack.length - many);
let root = this.nodes[id];
let els = this.stack.splice(this.stack.length - many);
for (let k = 0; k < many; k++) {
this.root.appendChild(this.els[k]);
root.appendChild(els[k]);
}
}