A utility class for managing event listeners.
| Signature | Description |
|---|---|
| Seadragon.EventManager() | Creates an EventManager. |
| Name and Signature | Return Type | Description |
|---|---|---|
| addListener(eventName, handler) | - | Adds the given handler function as a listener for the event with the given name. |
| removeListener(eventName, handler) | - | Removes the given handler function as a listener for the event with the given name. |
| clearListeners(eventName) | - | Removes all listeners for the given event. |
| trigger(eventName, ...) | - | Triggers the event with the given name, optionally passing any additional arguments to the registered handler functions. |