added `getEventListeners` method.