(get-collections element)
Returns collections from the given DOM node.
Source
(defn
get-collections
"Returns collections from the given DOM node."
[element]
(vec
(for
[elem
(-> element .-children array-seq)
:let
[classes (.-classList elem)]
:when
(or (.contains classes "collection") (.contains classes "symbol"))]
elem)))