Made dropClass clear the field when there are no more classes (except if keep is true)