From d37957363fb1f010da31ca34f5fbcc871d2da511 Mon Sep 17 00:00:00 2001 From: samreid Date: Tue, 27 Nov 2018 21:42:43 -0700 Subject: [PATCH] Use Util.toFixed, etc, see https://github.com/phetsims/wave-interference/issues/191 --- js/common/view/WaterEmitterNode.js | 1 - js/common/view/WaveAreaGraphNode.js | 2 +- js/common/view/WaveInterferenceSceneIcons.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/js/common/view/WaterEmitterNode.js b/js/common/view/WaterEmitterNode.js index ad2aef77..9ad5b52f 100644 --- a/js/common/view/WaterEmitterNode.js +++ b/js/common/view/WaterEmitterNode.js @@ -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' ); diff --git a/js/common/view/WaveAreaGraphNode.js b/js/common/view/WaveAreaGraphNode.js index 6557ae8d..e0daf8ec 100644 --- a/js/common/view/WaveAreaGraphNode.js +++ b/js/common/view/WaveAreaGraphNode.js @@ -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 } ) diff --git a/js/common/view/WaveInterferenceSceneIcons.js b/js/common/view/WaveInterferenceSceneIcons.js index f83b70f7..badb8ef6 100644 --- a/js/common/view/WaveInterferenceSceneIcons.js +++ b/js/common/view/WaveInterferenceSceneIcons.js @@ -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' );