Skip to content

Commit

Permalink
Use Util.toFixed, etc, see #191
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 28, 2018
1 parent 92fc7ec commit d379573
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion js/common/view/WaterEmitterNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ define( require => {
const BooleanProperty = require( 'AXON/BooleanProperty' );
const EmitterNode = require( 'WAVE_INTERFERENCE/common/view/EmitterNode' );
const FaucetNode = require( 'SCENERY_PHET/FaucetNode' );
const Property = require( 'AXON/Property' );
const NumberProperty = require( 'AXON/NumberProperty' );
const waveInterference = require( 'WAVE_INTERFERENCE/waveInterference' );
const WaveInterferenceUtils = require( 'WAVE_INTERFERENCE/common/WaveInterferenceUtils' );
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/WaveAreaGraphNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ define( require => {
// Find the position of the tick mark in the units of the scene
const horizontalAxisTickLabel = new SceneToggleNode(
model,
scene => new WaveInterferenceText( ( scene.waveAreaWidth * x / graphWidth ).toFixed( 0 ), {
scene => new WaveInterferenceText( Util.toFixed( scene.waveAreaWidth * x / graphWidth, 0 ), {
centerX: x,
top: horizontalLineY + HORIZONTAL_LABEL_VERTICAL_MARGIN
} )
Expand Down
1 change: 0 additions & 1 deletion js/common/view/WaveInterferenceSceneIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ define( require => {
const Image = require( 'SCENERY/nodes/Image' );
const LaserPointerNode = require( 'SCENERY_PHET/LaserPointerNode' );
const LightEmitterNode = require( 'WAVE_INTERFERENCE/common/view/LightEmitterNode' );
const Property = require( 'AXON/Property' );
const speakerImage = require( 'image!WAVE_INTERFERENCE/speaker/speaker_MID.png' );
const waveInterference = require( 'WAVE_INTERFERENCE/waveInterference' );

Expand Down

0 comments on commit d379573

Please sign in to comment.