refactor: remove first param of all onTrigger calls
This commit is contained in:
parent
46fe6d3c4d
commit
e3680b96de
13 changed files with 15 additions and 41 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue