bradbirdsall/Swipe — pull request #150 by will-r (2012-12-06 11:11:18+00:00)
Title: Named callbacks, slides loopable, backwards compatible, documented

This update adds named callbacks and the option to loop the slides so that you never see it jump back to the beginning.

The callbacks are 'before', 'after', 'touch_start' and 'touch_end', which would normally be used to drop out of automatic mode.

The loop mode is very lightweight and works by cloning the start and end elements and jumping between them. No other code changes required. It's enabled by passing a `loop: true` option to the initializer.

The revised callback system is backwards-compatible with the singular callback argument and all these changes are documented in the README.

Minified with google closure compiler in simple mode.

Thanks for writing this: it's a very nice little library.

cheers,

Will