Module

listeners

Methods related to attaches custom events handlers to the specified widget.

View Source mixins/listeners.js, line 1

Methods

# addListener(evt, func)

Let to attach events handler. Several functions can be attached to the same event name.

Parameters:
Name Type Description
evt string

Event name.

func function

Callback function.

View Source mixins/listeners.js, line 21

# removeAllListeners(evt)

Remove all listener for a particular event.

Parameters:
Name Type Description
evt string

Event name.

View Source mixins/listeners.js, line 46

# removeListenerByIndex(evt, index)

Remove a particular event listener by index.

Parameters:
Name Type Description
evt string

Event name.

index number

Index number.

View Source mixins/listeners.js, line 35