Map to store event listeners by pInstance and event type.
Registers a listener for a specified event on a specific pInstance.
The instance to associate the event with.
The name of the event.
The function to invoke when the event is triggered.
Triggers a specified event on a specific pInstance, invoking all registered listeners.
The instance to trigger the event on.
The name of the event.
Optional pData: anyThe data to pass to the event listeners.
Class-based EventEmitter for managing custom events with pInstance-specific tracking.