Skip to content

Commit

Permalink
Rename MakeATenUtil => MakeATenUtils, see phetsims/tasks#966
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and chrisklus committed Jun 2, 2021
1 parent 9a8417f commit 0f0f66c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ define( require => {
const Node = require( 'SCENERY/nodes/Node' );
const Rectangle = require( 'SCENERY/nodes/Rectangle' );

const MakeATenUtil = {
const MakeATenUtils = {
/**
* Common way of determining number of digits in a number.
* @public
Expand Down Expand Up @@ -50,7 +50,7 @@ define( require => {
}
};

makeATen.register( 'MakeATenUtil', MakeATenUtil );
makeATen.register( 'MakeATenUtils', MakeATenUtils );

return MakeATenUtil;
return MakeATenUtils;
} );
4 changes: 2 additions & 2 deletions js/make-a-ten/common/model/ArithmeticRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ define( require => {
// modules
const inherit = require( 'PHET_CORE/inherit' );
const makeATen = require( 'MAKE_A_TEN/makeATen' );
const MakeATenUtil = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtil' );
const MakeATenUtils = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtils' );

/**
* @constructor
Expand Down Expand Up @@ -70,7 +70,7 @@ define( require => {
}

// How many places are on the number?
const maximumPlace = MakeATenUtil.digitsInNumber( numberValue ) - 1;
const maximumPlace = MakeATenUtils.digitsInNumber( numberValue ) - 1;

// Grab the place we'll try to remove from.
const place = Math.max( minimumPlace, pulledPlace );
Expand Down
4 changes: 2 additions & 2 deletions js/make-a-ten/common/model/BaseNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ define( require => {
const BaseNumberNode = require( 'MAKE_A_TEN/make-a-ten/common/view/BaseNumberNode' );
const inherit = require( 'PHET_CORE/inherit' );
const makeATen = require( 'MAKE_A_TEN/makeATen' );
const MakeATenUtil = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtil' );
const MakeATenUtils = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtils' );

// Precompute bounds for each digit
const DIGIT_BOUNDS = [ 0, 1, 2, 3 ].map( function( place ) {
Expand All @@ -34,7 +34,7 @@ define( require => {
this.numberValue = digit * Math.pow( 10, place );

// @public {number} - Number of digits in our numeric value
this.digitLength = MakeATenUtil.digitsInNumber( this.numberValue );
this.digitLength = MakeATenUtils.digitsInNumber( this.numberValue );

// @public {number} - The place in the number (power of 10) that our digit would be multiplied by to sum, e.g.
// place 2 with a digit 3 has a numberValue = 300, i.e. 3 * 10^2.
Expand Down
4 changes: 2 additions & 2 deletions js/make-a-ten/common/model/PaperNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define( require => {
const inherit = require( 'PHET_CORE/inherit' );
const makeATen = require( 'MAKE_A_TEN/makeATen' );
const MakeATenConstants = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenConstants' );
const MakeATenUtil = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtil' );
const MakeATenUtils = require( 'MAKE_A_TEN/make-a-ten/common/MakeATenUtils' );
const NumberProperty = require( 'AXON/NumberProperty' );
const Vector2 = require( 'DOT/Vector2' );
const Vector2Property = require( 'DOT/Vector2Property' );
Expand Down Expand Up @@ -105,7 +105,7 @@ define( require => {
get digitLength() {
assert && assert( this.numberValueProperty.value > 0 );

return MakeATenUtil.digitsInNumber( this.numberValueProperty.value );
return MakeATenUtils.digitsInNumber( this.numberValueProperty.value );
},

/**
Expand Down

0 comments on commit 0f0f66c

Please sign in to comment.