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

don't depend on .rs-carousel class #68

Closed chrisjlee closed 11 years ago

chrisjlee commented 11 years ago

I was curious if it was possible for your plugin to work without needing to use the .rs-carousel class.

I tried just '.carousel' and didn't have any luck.

richardscarrott commented 11 years ago

It'll always add in the .rs-carousel className as it ensures the functional styles are applied correctly. You could change the CSS to .mynamespace-carousel {} and re-namespace the widget to .mynamespace-carousel but the JS is always going to expect a namespace... unless perhaps you extend the widget and hardcode this.widgetFullName to 'carousel'; that'd probably do it.