Hello,
In Cocos Creator 3.8.3, how are the event target class functions (such as on
, off
, emit
, etc.) implemented? Could you provide an overview of the underlying structure and flow of the event handling system? Specifically, I’m curious about how event listeners are registered, managed, and triggered, and what kind of optimizations or patterns Cocos Creator uses for efficient event dispatching.
If you could point me in the direction in the engine code that would be great too.