Listener

Listener

Method AbstractElement#listen automatically create new instance of Listener ann return it. In other words it's just callback-keeper, which invoke names of event are match

Constructor

new Listener(event, cb, after)

Parameters:
Name Type Description
event string

(Optional) Name of event.

cb function

(Optional) Callback.

after string

(Optional) To call callback after changes?

Source:

Methods

destroy()

To remove event mame and callback.

Source: