From 447d484f7b3afdf068d0da95ed8befde5b37d0c6 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 28 Dec 2016 15:33:11 +0100 Subject: [PATCH] Disable naming of render functions in defc and defcs macros. This has caused some unexpected behavior with recursive components. --- frontend/src/uxbox/util/mixins.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/uxbox/util/mixins.clj b/frontend/src/uxbox/util/mixins.clj index eafa11437b..ac3091445a 100644 --- a/frontend/src/uxbox/util/mixins.clj +++ b/frontend/src/uxbox/util/mixins.clj @@ -36,8 +36,8 @@ 4 (let [sym (:name r) args (:args r) func (if (map? v) - `(fn ~sym ~args ~v ~(s/compile-html `(do ~@n))) - `(fn ~sym ~args ~(s/compile-html `(do ~@(cons v n)))))] + `(fn ~args ~v ~(s/compile-html `(do ~@n))) + `(fn ~args ~(s/compile-html `(do ~@(cons v n)))))] [func (:doc r) (:mixins r) sym])))) (defmacro defc