Closed pirxpilot closed 11 years ago
I'd personally like to avoid single boolean parameters. See: the boolean trap
this seems like a global option, maybe swipe.cicle()
is more appropriate?
Global option makes sense. Let me see if I can put together an alternative PR.
@juliangruber - you meant swipe.cycle
right? it's taken already - I am thinking swipe.loop()
See #22 for a better/different way.
Both Swipe.next and Swipe.prev take an optional
cycle
parameter. Ifcycle
is truthy we rewind slides at the beginning and end.Swipe.cycle still works in the same way, but it's implemented as
next(true)
Updated docs and one of the examples.