What is the purpose of the enableEvents() method?To enable a particular event of an object, the enableEvents() method is utilized. This method is used by the objects whose prime responsibility is to handle events, by overriding their event-dispatch methods. An event normally enabled at time when a listener is added to an object for a specific event.
enableEvents() enables an event of an object. Usually, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.
|