Skip to content

Commit

Permalink
Rename DOT/Util and SCENERY/Util to Utils, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 30, 2019
1 parent af028fc commit ee54719
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions js/ScoreDisplayLabeledNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define( require => {
const StatusBar = require( 'VEGAS/StatusBar' );
const StringUtils = require( 'PHETCOMMON/util/StringUtils' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const vegas = require( 'VEGAS/vegas' );

// strings
Expand Down Expand Up @@ -46,7 +46,7 @@ define( require => {
// Update number displayed based on score.
const scorePropertyListener = function( score ) {
scoreDisplayText.text = StringUtils.fillIn( patternScoreNumberString, {
score: Util.toFixed( score, options.scoreDecimalPlaces )
score: Utils.toFixed( score, options.scoreDecimalPlaces )
} );
};
scoreProperty.link( scorePropertyListener );
Expand Down
4 changes: 2 additions & 2 deletions js/ScoreDisplayNumberAndStar.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define( require => {
const StarNode = require( 'SCENERY_PHET/StarNode' );
const StatusBar = require( 'VEGAS/StatusBar' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const vegas = require( 'VEGAS/vegas' );

/**
Expand Down Expand Up @@ -57,7 +57,7 @@ define( require => {
children.push( new StarNode( merge( { value: 0 }, options.starNodeOptions ) ) );
}
else {
children.push( new Text( Util.toFixed( score, options.scoreDecimalPlaces ), {
children.push( new Text( Utils.toFixed( score, options.scoreDecimalPlaces ), {
font: options.font,
fill: options.textFill
} ) );
Expand Down
10 changes: 5 additions & 5 deletions js/demo/FiniteChallengesScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ define( require => {
const RectangularPushButton = require( 'SUN/buttons/RectangularPushButton' );
const ScreenView = require( 'JOIST/ScreenView' );
const Text = require( 'SCENERY/nodes/Text' );
const Util = require( 'DOT/Util' );
const Utils = require( 'DOT/Utils' );
const VBox = require( 'SCENERY/nodes/VBox' );
const vegas = require( 'VEGAS/vegas' );

Expand Down Expand Up @@ -67,7 +67,7 @@ define( require => {
new Text( 'Level: ', { font: DEFAULT_FONT } ),
new HSlider( levelProperty, new Range( 1, 5 ), {
constrainValue: function( value ) {
return Util.roundSymmetric( value );
return Utils.roundSymmetric( value );
}
} )
]
Expand All @@ -78,7 +78,7 @@ define( require => {
new Text( 'Challenge: ', { font: DEFAULT_FONT } ),
new HSlider( challengeIndexProperty, new Range( 0, NUMBER_OF_CHALLENGES - 1 ), {
constrainValue: function( value ) {
return Util.roundSymmetric( value );
return Utils.roundSymmetric( value );
}
} )
]
Expand All @@ -89,7 +89,7 @@ define( require => {
new Text( 'Number of challenges: ', { font: DEFAULT_FONT } ),
new HSlider( numberOfChallengesProperty, new Range( 1, NUMBER_OF_CHALLENGES ), {
constrainValue: function( value ) {
return Util.roundSymmetric( value );
return Utils.roundSymmetric( value );
}
} )
]
Expand All @@ -109,7 +109,7 @@ define( require => {
new Text( 'Elapsed time: ', { font: DEFAULT_FONT } ),
new HSlider( elapsedTimeProperty, new Range( 0, 1000 ), {
constrainValue: function( value ) {
return Util.roundSymmetric( value );
return Utils.roundSymmetric( value );
}
} )
]
Expand Down

0 comments on commit ee54719

Please sign in to comment.