mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
Improve performances of normalizeChildrenWith by exiting if list are equals
This commit is contained in:
@@ -32,7 +32,10 @@ function _refreshNode(transform, node) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function _normalizeChildrenWith(transform, schema, node, prevNode) {
|
function _normalizeChildrenWith(transform, schema, node, prevNode) {
|
||||||
if (!node.nodes) {
|
if (
|
||||||
|
node.kind == 'text'
|
||||||
|
|| (prevNode && prevNode.nodes == node.nodes)
|
||||||
|
) {
|
||||||
return transform
|
return transform
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user