wip: queue mods

This commit is contained in:
Jonathan Kelley committed 2022-11-16 01:13:39 -08:00
1 parent ea7ab5f765
commit 66319cf6e2
4 files changed
+76 -26

No files matched your search

+7
View File
@@ -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;