Wilto / Dynamic-Carousel

A carousel plugin built for responsive layouts. There are many like it, but this one is mine.
matmarquis.com/carousel/
472 stars 112 forks source link

jQuery.noConflict() support: move reference of window.$ into plugin closure #53

Closed gordonbrander closed 12 years ago

gordonbrander commented 12 years ago

I've fixed compatibility with jQuery.noConflict() by moving the definition of $.event.special.dragSnap into the plugin closure. This is super important if you want to use Dynamic Carousel in an environment that runs jQuery in noConflict mode (e.g. WordPress and lots of large sites).

Also in the mix: misc fixes for some missing semi-colons, accidentally missed commas during variable declaration, that sort of thing.

Thanks for the handy plugin!

Wilto commented 12 years ago

Thanks for the help, man!