Added new 'hasListeners' method to the event classes.