invoke
A function that represents an event to which you subscribe by calling it with a listener function as argument.
Parameters
listener
The listener function will be called when the event happens.
A function that represents an event to which you subscribe by calling it with a listener function as argument.
The listener function will be called when the event happens.