kswedberg / jquery-carousel-lite

A jQuery carousel plugin based on jCarouselLite by Ganeshji Marwaha
MIT License
177 stars 59 forks source link

Goto buttons not setting the active class #29

Closed roscopeeco closed 10 years ago

roscopeeco commented 11 years ago

Hi

First of all got to say GREAT PLUGIN! The original was good but you've added in some great functionality.

I've come across an issue with the active class not being set when using the goto buttons.

I was supplying an array of goto selectors.

After a lot of head scratching and moving between different jquery versions with no luck i managed to resolve the issue by modifying line 78 in the source from

    $btnsGo = $(o.btnGo);

to: $btnsGo = $(o.btnGo.join());

So basically it's just supplying a string instead of an array.

Thanks

Ross

kswedberg commented 10 years ago

Thanks for the report. Glad you like the plugin! Let me know if this commit doesn't fix the problem for you.