Skip to content

Commit 8506298

Browse files
committed
improved component check
1 parent 7c5c486 commit 8506298

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject domino/ui "0.1.3"
1+
(defproject domino/ui "0.1.4"
22
:description "UI component library for Domino"
33
:url "https://github.com/domino-clj/domino-ui"
44
:license {:name "Eclipse Public License"

src/domino/ui/view.cljs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
[clojure.walk :refer [prewalk]]))
55

66
(defn component? [node]
7-
(and (vector? node) (= "domino.ui.component" (namespace (first node)))))
7+
(and (vector? node)
8+
(keyword? (first node))
9+
(= "domino.ui.component" (namespace (first node)))))
810

911
(defn render [context view]
1012
(prewalk

0 commit comments

Comments
 (0)