[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,7 +128,10 @@
(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)
text-class
nested-text)
(prepare-text-props
(utils.core/deep-merge options-with-style (utils.core/deep-merge options-with-style
options)) options))
nested-text-elements])))) nested-text-elements]))))