cycle
cycle copied to clipboard
Random is not showing anything with just one slide
The random option is not showing anything when there is just one image. I 'fixed it' (supposing that there is something wrong and it's not only me :p) by changing this line:
if (opts.random) {
to this one:
if (opts.random && els.length > 1) {
I just found the same bug after upgrading from a really old version. My workaround was to set startingSlide: 0.