Skip to content

Commit

Permalink
replace RangeWithValue with Range, phetsims/dot#78
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
  • Loading branch information
pixelzoom committed Oct 4, 2018
1 parent 8968fe1 commit 1507eb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/concentration/view/EvaporationControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define( function( require ) {
var Node = require( 'SCENERY/nodes/Node' );
var Panel = require( 'SUN/Panel' );
var PhetFont = require( 'SCENERY_PHET/PhetFont' );
var RangeWithValue = require( 'DOT/RangeWithValue' );
var Range = require( 'DOT/Range' );
var StringUtils = require( 'PHETCOMMON/util/StringUtils' );
var Text = require( 'SCENERY/nodes/Text' );

Expand Down Expand Up @@ -45,7 +45,7 @@ define( function( require ) {

var label = new Text( StringUtils.format( pattern0LabelString, evaporationString ), { font: new PhetFont( 22 ) } );

var slider = new HSlider( evaporator.evaporationRateProperty, new RangeWithValue( 0, evaporator.maxEvaporationRate ), {
var slider = new HSlider( evaporator.evaporationRateProperty, new Range( 0, evaporator.maxEvaporationRate ), {
trackSize: new Dimension2( 150, 6 ),
enabledProperty: evaporator.enabledProperty,
endDrag: function() { evaporator.evaporationRateProperty.set( 0 ); }, // at end of drag, snap evaporation rate back to zero
Expand Down

0 comments on commit 1507eb0

Please sign in to comment.