[perf] small perf improvement for nested-text

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
yenda 2019-06-03 03:48:17 +02:00 committed by Andrey Shovkoplyas
parent a1d6ead6d3
commit 48df741f8d
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 3 deletions

View File

@ -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))))