diff --git a/packages/core/src/runtime/actor.ts b/packages/core/src/runtime/actor.ts index ec3bbc8..71f5b25 100644 --- a/packages/core/src/runtime/actor.ts +++ b/packages/core/src/runtime/actor.ts @@ -237,12 +237,18 @@ export class Facet { }); } - idChain(): string { - let facetIds = []; + idChainValues(): AnyValue[] { + let pieces = []; for (let f: Facet | null = this; f !== null; f = f.parent) { - facetIds.push(f.id); + pieces.push(f.id); } - return facetIds.reverse().join(':') + ':' + stringify(this.actor.name); + pieces.push(this.actor.name); + pieces.reverse(); + return pieces; + } + + idChain(): string { + return this.idChainValues().map(v => stringify(v)).join(':'); } toString(): string {