From 9032044a0f35b128bb5f9a4ec65e0fe7a7fd94f6 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Thu, 20 Jul 2023 23:19:10 +0100 Subject: :recycle: Explicitly handle namespaced elements in the vdom tree. --- src/runtime.ffi.mjs | 5 ++--- 1 file 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) { -- cgit v1.2.3