fix(dispatcher): handlers without filters

This commit is contained in:
teidesu 2022-05-14 21:38:41 +03:00
parent e1dab9a195
commit 0633d0a817

View file

@ -996,7 +996,7 @@ export class Dispatcher<State = never, SceneName extends string = string> {
handler?: any, handler?: any,
group?: number group?: number
): void { ): void {
if (typeof handler === 'number') { if (typeof handler === 'number' || typeof handler === 'undefined') {
this.addUpdateHandler( this.addUpdateHandler(
{ {
name, name,