Bind
methodsAttaches an event handler for the specified event.
Parameters:eventNameString
handlerFunction
The name of the event.
The function which will be invoked when the event is fired.
Attaches an event handler for the specified event.
The name of the event.
The function which will be invoked when the event is fired.