aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-07-20 23:19:10 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-07-20 23:19:10 +0100
commit9032044a0f35b128bb5f9a4ec65e0fe7a7fd94f6 (patch)
tree2567660dfc241dcff8a728d0af6d8fa35249a2a0
parent3a60c2a1f44baf6c2d2cad2f329600e63d99f6c2 (diff)
downloadlustre-9032044a0f35b128bb5f9a4ec65e0fe7a7fd94f6.tar.gz
lustre-9032044a0f35b128bb5f9a4ec65e0fe7a7fd94f6.zip
:recycle: Explicitly handle namespaced elements in the vdom tree.
-rw-r--r--src/runtime.ffi.mjs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runtime.ffi.mjs b/src/runtime.ffi.mjs
index c7f6668..1bdc1f8 100644
--- a/src/runtime.ffi.mjs
+++ b/src/runtime.ffi.mjs
@@ -1,10 +1,9 @@
-import { element, element_ns, text } from "./lustre/element.mjs";
+import { element, namespaced, text } from "./lustre/element.mjs";
import { List } from "./gleam.mjs";
-import { find } from "../gleam_stdlib/gleam/list.mjs";
import { Some, None } from "../gleam_stdlib/gleam/option.mjs";
const Element = element("").constructor;
-const ElementNs = element_ns("", "").constructor;
+const ElementNs = namespaced("", "").constructor;
const Text = text("").constructor;
export function morph(prev, curr) {