add onTrigger helper
This commit is contained in:
parent
f2f3511a2f
commit
3e1e92a6f1
1 changed files with 3 additions and 0 deletions
|
|
@ -1049,6 +1049,9 @@ export class Pattern {
|
||||||
.unit('c')
|
.unit('c')
|
||||||
.slow(factor);
|
.slow(factor);
|
||||||
}
|
}
|
||||||
|
onTrigger(onTrigger) {
|
||||||
|
return this._withHap((hap) => hap.setContext({ ...hap.context, onTrigger }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - adopt value.mjs fully..
|
// TODO - adopt value.mjs fully..
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue