1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 06:53:25 +02:00

improve mark handling performance for large selections (#926)

This commit is contained in:
Shawn Erquhart
2017-07-12 15:13:53 -04:00
committed by Ian Storm Taylor
parent 37ba8e9e6d
commit c0d82c0392

View File

@@ -904,7 +904,8 @@ const Node = {
return this
.getCharactersAtRange(range)
.reduce((memo, char) => {
return memo.concat(char.marks.toArray())
char.marks.toArray().forEach(c => memo.push(c))
return memo
}, [])
},