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

Naming #70

Closed titovanton closed 10 years ago

titovanton commented 11 years ago

Hi, first of all, i wanna say thk u very much for this free carousel. But why did u named it rs-carousel(jq.com), jquery-ui-carousel(github) and .carousel() - the name of jq plagin. Last is now my problem, becouse i use twitter bootstrap and his carousel named the same! Didn't u think about all of that, when got naming your childe? Sorry for my En...

richardscarrott commented 10 years ago

I originally named it jQuery.ui.carousel however I later learned the guys on the jQuery UI team don't want people using their namespace so I changed it to jQuery.rs.carousel by which time it had a number of forks / followers on GitHub so I didn't change the repo name. You call it as jQuery.fn.carousel because that's how the jQuery UI Widget Factory works; the namespace is only added to the constructor, jQuery.rs.carousel, and not the jQuery method itself.

If you want to re-namespace to avoid conflicts with other libs you can:

$.widget('rs.rscarousel', $.rs.carousel, {});

That way the constructor will be found at jQuery.rs.rscarousel and the jQuery method will be jQuery.fn.rscarousel.

Hope this helps.