code: function (rate) {
        var value = parseFloat(rate);
        if (this._contains(value)) {
          this._fillUntil(this._rateToIndex(value));
          this.$input.val(value);
        } else if (rate === '') {
          this._fillUntil(0);
          this.$input.val('');
        }
      }
docs: Update empty and filled rating symbols according to a rate.