richardscarrott / jquery-ui-carousel

jQuery RS Carousel is a responsive and touch-enabled carousel written on top of jQuery and the jQuery UI Widget Factory providing a full and familiar API in less than 2.6kB minified and gzipped.
http://richardscarrott.github.io/jquery-ui-carousel/
192 stars 56 forks source link

startAt only works if continuous is true #32

Closed WingEraser closed 12 years ago

WingEraser commented 12 years ago

startAt only works if continuous is set to true, otherwise it will start at page 1.

richardscarrott commented 12 years ago

Thanks for reporting this - to solve this I've actually removed the startAt option as upon second thoughts I felt it wasn't really necessary when it can be just as easily achieved through the create callback:

$('#carousel').carousel({
    create: function () {
        $(this).carousel('goToPage', 2, false);
    }
});