Fix a bug causing Sequences to not be playable
This commit is contained in:
parent
3552f50613
commit
53ab4dbf9d
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ export default class Sequence {
|
||||||
_playableRangeD: undefined | Prism<{start: number; end: number}>
|
_playableRangeD: undefined | Prism<{start: number; end: number}>
|
||||||
|
|
||||||
readonly pointer: ISequence['pointer'] = pointer({root: this, path: []})
|
readonly pointer: ISequence['pointer'] = pointer({root: this, path: []})
|
||||||
readonly $$isIdentityDerivationProvider = true
|
readonly $$isIdentityPrismProvider = true
|
||||||
readonly _logger: ILogger
|
readonly _logger: ILogger
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -81,7 +81,7 @@ export default class Sequence {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
getIdentityDerivation(path: Array<string | number>): Prism<unknown> {
|
getIdentityPrism(path: Array<string | number>): Prism<unknown> {
|
||||||
if (path.length === 0) {
|
if (path.length === 0) {
|
||||||
return prism((): ISequence['pointer']['$$__pointer_type'] => ({
|
return prism((): ISequence['pointer']['$$__pointer_type'] => ({
|
||||||
length: val(this.pointer.length),
|
length: val(this.pointer.length),
|
||||||
|
|
Loading…
Reference in a new issue