[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)
|
||||
(let [[options nested-text-elements] text-element]
|
||||
[nested-text (prepare-text-props
|
||||
(utils.core/deep-merge options-with-style
|
||||
options))
|
||||
[(if (string? nested-text-elements)
|
||||
text-class
|
||||
nested-text)
|
||||
(prepare-text-props
|
||||
(utils.core/deep-merge options-with-style
|
||||
options))
|
||||
nested-text-elements]))))
|
||||
[text-class options-with-style]
|
||||
nested-text-elements))))
|
||||
|
|
Loading…
Reference in New Issue