ListenerHandler

dwv.utils. ListenerHandler

new ListenerHandler()

Source:
See:

ListenerHandler class: handles add/removing and firing listeners.

Methods

add(type, callback)

Source:

Add an event listener.

Parameters:
Name Type Description
type string

The event type.

callback object

The method associated with the provided event type, will be called with the fired event.

fireEvent(event)

Source:

Fire an event: call all associated listeners with the input event object.

Parameters:
Name Type Description
event object

The event to fire.

remove(type, callback)

Source:

Remove an event listener.

Parameters:
Name Type Description
type string

The event type.

callback object

The method associated with the provided event type.