Fork me on GitHub

events: click, swipe

You can either assign callback methods as part of the options object, or you can assign event handlers using the jQuery on/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.