Skip to content

Commit 793e4f0

Browse files
committed
eliminate runtime apply calls
1 parent 6222103 commit 793e4f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sablono/cljss_compiler.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
(defn- compile-class [class styles]
77
(let [cls (str "css-" (hash styles))
8-
gen-class `(apply cljss.core/css ~(builder/build-styles cls styles))]
8+
gen-class `(cljss.core/css ~@(builder/build-styles cls styles))]
99
(if (seq class)
10-
`(apply str ~gen-class " " ~@(interpose " " class))
10+
`(str ~gen-class " " ~@(->> (mapcat identity class)
11+
(interpose " ")))
1112
gen-class)))
1213

1314
(defn- normalize-attr [tag name type]

0 commit comments

Comments
 (0)