refactor: remove first param of all onTrigger calls

This commit is contained in:
Felix Roos 2025-06-30 10:18:54 +02:00
parent 46fe6d3c4d
commit e3680b96de
No known key found for this signature in database
13 changed files with 15 additions and 41 deletions

View file

@ -3263,7 +3263,7 @@ export const slice = register(
* s("bd!8").onTriggerTime((hap) => {console.info(hap)})
*/
Pattern.prototype.onTriggerTime = function (func) {
return this.onTrigger((t_deprecate, hap, currentTime, cps = 1, targetTime) => {
return this.onTrigger((hap, currentTime, _cps, targetTime) => {
const diff = targetTime - currentTime;
window.setTimeout(() => {
func(hap);