mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 22:45:18 +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
|
return this
|
||||||
.getTexts()
|
.getTexts()
|
||||||
.map(text => this.getClosestBlock(text))
|
.map(text => this.getClosestBlock(text))
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -586,7 +586,7 @@ const Node = {
|
|||||||
.getTexts()
|
.getTexts()
|
||||||
.map(text => this.getFurthestInline(text))
|
.map(text => this.getFurthestInline(text))
|
||||||
.filter(exists => exists)
|
.filter(exists => exists)
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -602,7 +602,7 @@ const Node = {
|
|||||||
.getTextsAtRange(range)
|
.getTextsAtRange(range)
|
||||||
.map(text => this.getClosestInline(text))
|
.map(text => this.getClosestInline(text))
|
||||||
.filter(exists => exists)
|
.filter(exists => exists)
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@@ -604,7 +604,7 @@ export function unwrapBlockAtRange(transform, range, properties) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
.filter(exists => exists)
|
.filter(exists => exists)
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
|
|
||||||
wrappers.forEach((block) => {
|
wrappers.forEach((block) => {
|
||||||
@@ -691,7 +691,7 @@ export function unwrapInlineAtRange(transform, range, properties) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
.filter(exists => exists)
|
.filter(exists => exists)
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
|
|
||||||
inlines.forEach((inline) => {
|
inlines.forEach((inline) => {
|
||||||
@@ -730,7 +730,7 @@ export function wrapBlockAtRange(transform, range, block) {
|
|||||||
if (d == depth) return node
|
if (d == depth) return node
|
||||||
return document.getClosest(node, p => document.getDepth(p) == depth)
|
return document.getClosest(node, p => document.getDepth(p) == depth)
|
||||||
})
|
})
|
||||||
.toSet()
|
.toOrderedSet()
|
||||||
.toList()
|
.toList()
|
||||||
|
|
||||||
const first = siblings.first()
|
const first = siblings.first()
|
||||||
|
Reference in New Issue
Block a user