(handlers)
| 367 | } |
| 368 | |
| 369 | subscribe(handlers) { |
| 370 | for (let i = 0; i < boundedEvents.length; ++i) { |
| 371 | const name = boundedEvents[i]; |
| 372 | if (!handlers[name]) continue; |
| 373 | |
| 374 | this[name]?.subscribe(handlers[name]); |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | unsubscribe(handlers) { |
| 379 | let done = true; |