Jonas Jenwald
74db085794
Re-factor how "internal" EventBus listeners are handled in the viewer
...
Currently the viewer uses semi-private `EventBus.prototype.{_on, _off}` methods, to try and ensure that all internal viewer state is updated *before* any "external" listeners are invoked.
For all use-cases outside of the viewer, e.g in the integration-tests, the `EventBus.prototype.{on, off}` methods are supposed to be used instead.
Unfortunately this isn't currently enforced in any way, except (hopefully) during review, and generally speaking it's not really possible to prevent the semi-private methods being used (e.g. by third-party users).
Hence this patch adds a new `INTERNAL_EVT` property which is *not* exposed anywhere (neither in the API nor globally), and whose value is generated at build-time, that the viewer uses to mark its `EventBus` listeners are internal.
This allows us to remove the semi-private `EventBus` methods, which helps to simplify that class a little bit.
2026-05-29 22:11:58 +02:00
..
2025-12-15 17:43:52 +01:00
2026-05-25 14:31:55 +02:00
2025-01-18 09:35:11 +01:00
2026-05-29 22:11:58 +02:00
2026-05-19 21:10:12 +02:00
2026-05-16 12:31:40 +02:00
2026-05-29 22:11:58 +02:00
2025-08-25 20:04:56 +02:00
2026-05-29 22:11:58 +02:00
2026-05-29 14:32:29 +02:00
2026-05-29 22:11:58 +02:00
2026-05-25 14:31:55 +02:00
2026-02-17 09:42:27 +01:00
2026-05-19 21:10:12 +02:00
2026-03-01 13:01:21 +01:00
2026-04-25 12:13:12 +02:00
2015-08-14 18:59:55 +02:00
2026-05-25 14:31:55 +02:00
2026-02-26 14:35:13 +01:00
2026-03-29 14:52:06 +02:00
2011-07-05 10:53:57 -07:00
2025-08-22 18:26:59 +02:00
2026-03-15 22:25:45 +01:00
2025-09-24 17:04:27 +02:00
2026-02-01 17:56:03 +01:00
2026-05-19 21:10:12 +02:00
2026-05-19 21:10:12 +02:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-02-01 17:53:45 +01:00
2026-05-25 15:42:19 +02:00
2026-05-29 22:11:58 +02:00
2026-04-23 22:34:48 +02:00
2025-04-09 12:06:40 +02:00
2026-05-20 17:26:50 +02:00
2026-02-01 17:53:45 +01:00
2024-11-28 13:25:56 +01:00
2026-05-29 22:11:58 +02:00
2026-02-01 17:53:45 +01:00
2026-03-20 10:01:45 +01:00
2026-02-18 10:17:39 +01:00
2025-04-23 15:31:39 +02:00
2026-05-29 22:11:58 +02:00
2025-02-14 15:43:00 +01:00
2025-02-14 15:43:00 +01:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-02-14 12:33:34 +01:00
2026-05-29 22:11:58 +02:00
2026-02-26 16:46:34 +01:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-05-29 22:11:58 +02:00
2026-02-01 17:56:06 +01:00
2026-05-23 12:33:56 +02:00
2026-05-29 22:11:58 +02:00
2026-04-08 14:04:09 +02:00
2026-02-14 12:33:34 +01:00
2026-04-23 22:34:48 +02:00
2026-05-29 22:11:58 +02:00
2022-09-08 12:38:17 +02:00
2026-05-29 22:11:58 +02:00
2026-05-16 12:31:40 +02:00
2026-05-29 22:11:58 +02:00
2026-02-01 17:56:06 +01:00
2026-05-14 14:28:41 +01:00
2026-05-29 22:11:58 +02:00
2026-05-16 12:31:53 +02:00
2026-01-30 13:26:19 +01:00
2026-05-16 12:31:53 +02:00
2026-02-13 22:34:04 +01:00
2026-05-29 22:11:58 +02:00
2026-02-26 14:35:13 +01:00
2026-03-10 15:51:10 +01:00
2025-07-15 17:14:44 +02:00
2026-05-29 22:11:58 +02:00
2026-04-12 16:16:21 +02:00
2025-12-15 17:43:52 +01:00
2025-10-09 17:43:49 +02:00
2026-05-29 22:11:58 +02:00
2026-05-24 23:56:23 +05:00
2026-05-29 22:11:58 +02:00
2025-12-08 09:44:33 +01:00
2024-03-04 19:32:12 +01:00
2026-05-29 22:11:58 +02:00
2026-02-09 12:16:46 +01:00
2026-05-25 18:22:21 +02:00
2020-03-21 13:55:06 +01:00
2025-12-08 09:44:33 +01:00
2026-05-14 12:50:07 +02:00
2026-02-01 17:56:06 +01:00
2025-11-18 17:22:50 +01:00
2026-05-14 12:50:07 +02:00
2023-10-07 09:31:08 +02:00
2025-11-18 17:22:50 +01:00
2026-05-14 12:50:07 +02:00
2026-05-28 22:11:13 +02:00
2026-04-13 19:38:56 +02:00
2026-05-20 18:06:55 +02:00
2026-05-29 22:11:58 +02:00
2025-04-26 20:44:07 +02:00
2026-05-23 16:33:23 +02:00