malsup/cycle — Issue #86: various typos under opts.addSlide = function(newSlide, prepend) {
Author: CA-ITRM
Created: 2011-12-19 12:12:04+00:00
State: open

Hello there, here are a few issues I encountered while trying to get the addSlide() function to work:

els[prepend?'unshift':'push'](s);
should be
else[prepend?'unshift':'push'](s);

if (opts.els)
should be
if (els)

opts.els[prepend?'unshift':'push'](s); // shuffle needs this
should be
els[prepend?'unshift':'push'](s); // shuffle needs this