Facet.idChainValues
This commit is contained in:
parent
2a2b7da4bc
commit
7b8526dfcf
|
@ -237,12 +237,18 @@ export class Facet {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
idChain(): string {
|
idChainValues(): AnyValue[] {
|
||||||
let facetIds = [];
|
let pieces = [];
|
||||||
for (let f: Facet | null = this; f !== null; f = f.parent) {
|
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 {
|
toString(): string {
|
||||||
|
|
Loading…
Reference in New Issue