docs: function (applySwitchMargins) {
              var value;
              var binding = this._binding;
              if (!binding) {
                  return;
              }
  
              value = binding.inside[binding.to];
              if (value == null) {
                  value = 0;
              }
              if (value < 0) {
                  value = 0;
              }
              if (value > 1) {
                  value = 1;
              }
              if (this._isSwitch && applySwitchMargins) {
                  if (value >= this._switchThreshold) {
                      value = 1;
                  } else {
                      value = 0;
                  }
              }
              this._value = value;
              this._storeValue();
          }