Move some global variables in the interpreter into locals in the interpreter
This commit is contained in:
1 parent
0c4c0e70e5
commit
fe839ab347
2 files changed
+12
-19
No files matched your search
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user