aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-03-16 22:26:56 +0000
committerHayleigh Thompson <me@hayleigh.dev>2024-03-16 22:27:06 +0000
commiteb73e7622252e130095d41c0e901feba48ecfaf7 (patch)
tree7c78971d51d947d3408ca15a52471570d1a8122d /src
parente86fb67f8fc936f389740730a25581f0628ff779 (diff)
downloadlustre-eb73e7622252e130095d41c0e901feba48ecfaf7.tar.gz
lustre-eb73e7622252e130095d41c0e901feba48ecfaf7.zip
:bug: Fixed a bug where arguments were passed to Element constructor in the wrong order.
Diffstat (limited to 'src')
-rw-r--r--src/lustre/element.gleam9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lustre/element.gleam b/src/lustre/element.gleam
index c491aab..1c5c191 100644
--- a/src/lustre/element.gleam
+++ b/src/lustre/element.gleam
@@ -154,7 +154,14 @@ pub fn advanced(
self_closing: Bool,
void: Bool,
) -> Element(msg) {
- Element(tag, namespace, attrs, children, self_closing, void)
+ Element(
+ namespace: namespace,
+ tag: tag,
+ attrs: attrs,
+ children: children,
+ self_closing: self_closing,
+ void: void,
+ )
}
/// A function for turning a Gleam string into a text node. Gleam doesn't have