Created by: nicolasroux
In Carousel.prototype.slide function, replace line 3:
var $next = next || $activetype
with:
var $next = next || $activetype
to ensure selected element is a carousel item (i have a scenario with a hidden div inside my carousel)