phetsims / hookes-law

"Hooke's Law" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 4 forks source link

replace '{0}' with NumberDisplay.NUMBERED_PLACEHOLDER #71

Closed pixelzoom closed 5 years ago

pixelzoom commented 5 years ago

Noted in https://github.com/phetsims/scenery-phet/issues/446.

See:

// AppliedForceControl
 var VALUE_PATTERN = StringUtils.format( pattern0Value1UnitsString, '{0}', newtonsString );

// DisplacementControl
var VALUE_PATTERN = StringUtils.format( pattern0Value1UnitsString, '{0}', metersString );

// SpringConstantControl
  var VALUE_PATTERN = StringUtils.format( pattern0Value1UnitsString, '{0}', newtonsPerMeterString );
pixelzoom commented 5 years ago

Done, closing.