mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 14:41:23 +02:00
Use Node.forEachDescendant in Node.getKeys
This commit is contained in:
@@ -29,7 +29,7 @@ const Node = {
|
|||||||
getKeys() {
|
getKeys() {
|
||||||
const keys = []
|
const keys = []
|
||||||
|
|
||||||
this.filterDescendants(desc => {
|
this.forEachDescendant(desc => {
|
||||||
keys.push(desc.key)
|
keys.push(desc.key)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user