code: function() {
  			var invalid, self = this;
  			if (self.isRequired) {
  				if (self.items.length) self.isInvalid = false;
  				self.$control_input.prop('required', invalid);
  			}
  			self.refreshClasses();
  		}
docs: Updates all state-dependent attributes
  and CSS classes.