function _constrainValue( min, max, duration ) {
    if ( duration > max ) {
      return max;
    } else if ( duration < min ) {
      return min;
    }
    return duration;
  }
/**
   * @param {number} min The minimum height in pixels.
   * @param {number} max The maximum height in pixels.
   * @param {number} duration
   *   The amount of time over which to expand in milliseconds.
   * @returns {number} The amount of time over which to expand in milliseconds,
   *   constrained to within the min/max values.
   */
@param {number} min The minimum height in pixels.
@param {number} max The maximum height in pixels.
@param {number} duration
The amount of time over which to expand in milliseconds.
@returns {number} The amount of time over which to expand in milliseconds,
constrained to within the min/max values.
@param { number } min The minimum height in pixels . @param { number } max The maximum height in pixels . @param { number } duration The amount of time over which to expand in milliseconds . @returns { number } The amount of time over which to expand in milliseconds constrained to within the min / max values .
function _constrainValue( min, max, duration ) {
    if ( duration > max ) {
      return max;
    } else if ( duration < min ) {
      return min;
    }
    return duration;
  }
function _constrainValue ( min , max , duration ) { if ( duration > max ) { return max ; } else if ( duration < min ) { return min ; } return duration ; }
@param {number} min The minimum height in pixels.
@param { number } min The minimum height in pixels .