cycle icon indicating copy to clipboard operation
cycle copied to clipboard

various typos under opts.addSlide = function(newSlide, prepend) {

Open CA-ITRM opened this issue 14 years ago • 1 comments

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

elsprepend?'unshift':'push'; should be elseprepend?'unshift':'push';

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

opts.elsprepend?'unshift':'push'; // shuffle needs this should be elsprepend?'unshift':'push'; // shuffle needs this

CA-ITRM avatar Dec 19 '11 12:12 CA-ITRM

That is supposed to be "els", not "else". It's not a typo. "els" is an array of elements.

On Mon, Dec 19, 2011 at 7:12 AM, CA-ITRM < [email protected]

wrote:

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

elsprepend?'unshift':'push'; should be elseprepend?'unshift':'push';

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

opts.elsprepend?'unshift':'push'; // shuffle needs this should be elsprepend?'unshift':'push'; // shuffle needs this


Reply to this email directly or view it on GitHub: https://github.com/malsup/cycle/issues/86

malsup avatar Dec 19 '11 13:12 malsup