[perf] small perf improvement for nested-text
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
a1d6ead6d3
commit
48df741f8d
|
@ -128,9 +128,12 @@
|
||||||
|
|
||||||
(vector? text-element)
|
(vector? text-element)
|
||||||
(let [[options nested-text-elements] text-element]
|
(let [[options nested-text-elements] text-element]
|
||||||
[nested-text (prepare-text-props
|
[(if (string? nested-text-elements)
|
||||||
(utils.core/deep-merge options-with-style
|
text-class
|
||||||
options))
|
nested-text)
|
||||||
|
(prepare-text-props
|
||||||
|
(utils.core/deep-merge options-with-style
|
||||||
|
options))
|
||||||
nested-text-elements]))))
|
nested-text-elements]))))
|
||||||
[text-class options-with-style]
|
[text-class options-with-style]
|
||||||
nested-text-elements))))
|
nested-text-elements))))
|
||||||
|
|
Loading…
Reference in New Issue