These lines can actually be shortened to:

    $animate[value ? 'addClass' : 'removeClass'](self.$element, openClass);