1
0
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:
Samy Pessé
2016-11-03 12:04:22 +01:00
parent 1e7ff03897
commit 6f90515c96

View File

@@ -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)
}) })