add showWhole
This commit is contained in:
parent
f469e48970
commit
3eebccd566
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ export class Hap {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
showWhole() {
|
||||||
|
return `${this.whole == undefined ? '~' : this.whole.show()}: ${this.value}`;
|
||||||
|
}
|
||||||
|
|
||||||
combineContext(b) {
|
combineContext(b) {
|
||||||
const a = this;
|
const a = this;
|
||||||
return { ...a.context, ...b.context, locations: (a.context.locations || []).concat(b.context.locations || []) };
|
return { ...a.context, ...b.context, locations: (a.context.locations || []).concat(b.context.locations || []) };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue