wip: queue mods
This commit is contained in:
1 parent
ea7ab5f765
commit
66319cf6e2
4 files changed
+76
-26
No files matched your search
@@ -124,6 +124,10 @@ export class Interpreter {
|
||||
node.remove();
|
||||
}
|
||||
}
|
||||
CreateRawText(text) {
|
||||
const node = document.createTextNode(text);
|
||||
this.stack.push(node);
|
||||
}
|
||||
CreateTextNode(text, root) {
|
||||
const node = document.createTextNode(text);
|
||||
this.nodes[root] = node;
|
||||
@@ -271,6 +275,9 @@ export class Interpreter {
|
||||
case "CreateTextNode":
|
||||
this.CreateTextNode(edit.value);
|
||||
break;
|
||||
case "CreateStaticText":
|
||||
this.CreateTextNode(edit.value);
|
||||
break;
|
||||
case "HydrateText":
|
||||
this.HydrateText(edit.path, edit.value, edit.id);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user