summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/clj-kondo/hooks/dompa.clj5
-rw-r--r--src/dompa/utils.cljc2
2 files changed, 5 insertions, 2 deletions
diff --git a/resources/clj-kondo/hooks/dompa.clj b/resources/clj-kondo/hooks/dompa.clj
index b0eee7a..2433051 100644
--- a/resources/clj-kondo/hooks/dompa.clj
+++ b/resources/clj-kondo/hooks/dompa.clj
@@ -34,4 +34,7 @@
"the second argument must be a sequence or a map. "
"In other words, the second argument must be an attribute map "
"or sequence of other nodes created with the $ macro.")
- :type :dompa.utils/$-arg-validation))))) \ No newline at end of file
+ :type :dompa.utils/$-arg-validation)))))
+
+ ; if the first arg is a keyword, the second arg is a map, then the third arg can
+ ; only be a sequence
diff --git a/src/dompa/utils.cljc b/src/dompa/utils.cljc
index d76ba28..9e1cb27 100644
--- a/src/dompa/utils.cljc
+++ b/src/dompa/utils.cljc
@@ -42,6 +42,6 @@
($ :div
($ "hello world" n))
($ "hello")
- ($ :div "test")))
+ ($ :div (map #(%) []) "test")))
(test-page)