mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 08:34:28 +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) {
|
||||
if (!node.nodes) {
|
||||
if (
|
||||
node.kind == 'text'
|
||||
|| (prevNode && prevNode.nodes == node.nodes)
|
||||
) {
|
||||
return transform
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user