Seadragon.EventManager class
Version 0.8.8 - Back to
Seadragon Ajax API Reference
Overview
A utility class for managing event listeners.
Constructors
| Signature | Description |
| Seadragon.EventManager() | Creates an EventManager. |
Methods
| 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. |