the second statement in the block if which is $next.addclass(type).offsetWidth
is neither a call to a function neither an assignment.
if (transition)
{
$next.addClass(type);
$next[0].offsetWidth;
}
else
{
$active.removeClass('active');
$next.addClass('active');
}
What's the logic here?