diff --git a/src/mol-state/state.ts b/src/mol-state/state.ts index a054588b80300851f9579a67ac6d9a7777e64aa2..cbb5e4ae1368aed15307e7f5d49f03705ff5ca77 100644 --- a/src/mol-state/state.ts +++ b/src/mol-state/state.ts @@ -162,7 +162,7 @@ class State { return cell && cell.obj; } } finally { - this.spine.setSurrent(); + this.spine.setCurrent(); if (updated) this.events.changed.next(); this.events.isUpdating.next(false); @@ -607,7 +607,7 @@ async function updateNode(ctx: UpdateContext, currentRef: Ref): Promise<UpdateNo throw new Error(`No suitable parent found for '${currentRef}'`); } - ctx.spine.setSurrent(current); + ctx.spine.setCurrent(current); const parent = parentCell.obj!; current.sourceRef = parentCell.transform.ref; diff --git a/src/mol-state/tree/spine.ts b/src/mol-state/tree/spine.ts index e30a8b276607438ef0da4e2baadd32f813576785..e623ec41a19e4638d32ca69087a1fc199f9274f2 100644 --- a/src/mol-state/tree/spine.ts +++ b/src/mol-state/tree/spine.ts @@ -19,7 +19,7 @@ interface StateTreeSpine { namespace StateTreeSpine { export class Impl implements StateTreeSpine { private current: StateObjectCell | undefined = void 0; - setSurrent(cell?: StateObjectCell) { + setCurrent(cell?: StateObjectCell) { this.current = cell; }