mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 05:01:17 +02:00
change toSet to toOrderedSet (#322)
This commit is contained in:
committed by
Ian Storm Taylor
parent
a6ef4b816f
commit
08b733abe7
@@ -160,7 +160,7 @@ const Node = {
|
||||
return this
|
||||
.getTexts()
|
||||
.map(text => this.getClosestBlock(text))
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
},
|
||||
|
||||
@@ -586,7 +586,7 @@ const Node = {
|
||||
.getTexts()
|
||||
.map(text => this.getFurthestInline(text))
|
||||
.filter(exists => exists)
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
},
|
||||
|
||||
@@ -602,7 +602,7 @@ const Node = {
|
||||
.getTextsAtRange(range)
|
||||
.map(text => this.getClosestInline(text))
|
||||
.filter(exists => exists)
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
},
|
||||
|
||||
|
@@ -604,7 +604,7 @@ export function unwrapBlockAtRange(transform, range, properties) {
|
||||
})
|
||||
})
|
||||
.filter(exists => exists)
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
|
||||
wrappers.forEach((block) => {
|
||||
@@ -691,7 +691,7 @@ export function unwrapInlineAtRange(transform, range, properties) {
|
||||
})
|
||||
})
|
||||
.filter(exists => exists)
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
|
||||
inlines.forEach((inline) => {
|
||||
@@ -730,7 +730,7 @@ export function wrapBlockAtRange(transform, range, block) {
|
||||
if (d == depth) return node
|
||||
return document.getClosest(node, p => document.getDepth(p) == depth)
|
||||
})
|
||||
.toSet()
|
||||
.toOrderedSet()
|
||||
.toList()
|
||||
|
||||
const first = siblings.first()
|
||||
|
Reference in New Issue
Block a user