Make sure more than two chained classes are translated.

The interop .replace will only replace the first instance of
needle. Using clojure.string/replace will swap out all instances of
needle and thus allow more than two chained classes.
This commit is contained in:
Phil Jackson 2014-12-06 20:21:28 +00:00
parent 35e2fadab1
commit b303840899

View file

@ -520,7 +520,7 @@
(.createElementNS js/document resolved-ns tag))
(.createElement js/document tag))]
(when id (set! (.-id node) id))
(when class (set! (.-className node) (.replace class "." " ")))
(when class (set! (.-className node) (clojure.string/replace class "." " ")))
node))
;(defn- create-dom-node-simple [tag]