See the docs for more on each event
You can either assign callback methods as part of the options object, or you can assign
event handlers using the jQuery
off event registration.
The example below logs both from the callback and the event handlers. The Remove Events button will remove the event bindings, and then only the callbacks will be logged. Event logs are bold, callbacks are normal.