diff --git a/js/make-a-ten/common/MakeATenUtil.js b/js/make-a-ten/common/MakeATenUtils.js similarity index 92% rename from js/make-a-ten/common/MakeATenUtil.js rename to js/make-a-ten/common/MakeATenUtils.js index 7ea710b..5fa5039 100644 --- a/js/make-a-ten/common/MakeATenUtil.js +++ b/js/make-a-ten/common/MakeATenUtils.js @@ -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 @@ -50,7 +50,7 @@ define( require => { } }; - makeATen.register( 'MakeATenUtil', MakeATenUtil ); + makeATen.register( 'MakeATenUtils', MakeATenUtils ); - return MakeATenUtil; + return MakeATenUtils; } ); diff --git a/js/make-a-ten/common/model/ArithmeticRules.js b/js/make-a-ten/common/model/ArithmeticRules.js index 4501a4f..10d8f78 100644 --- a/js/make-a-ten/common/model/ArithmeticRules.js +++ b/js/make-a-ten/common/model/ArithmeticRules.js @@ -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 @@ -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 ); diff --git a/js/make-a-ten/common/model/BaseNumber.js b/js/make-a-ten/common/model/BaseNumber.js index 1674f1c..82847e3 100644 --- a/js/make-a-ten/common/model/BaseNumber.js +++ b/js/make-a-ten/common/model/BaseNumber.js @@ -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 ) { @@ -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. diff --git a/js/make-a-ten/common/model/PaperNumber.js b/js/make-a-ten/common/model/PaperNumber.js index b5fda76..8168bfc 100644 --- a/js/make-a-ten/common/model/PaperNumber.js +++ b/js/make-a-ten/common/model/PaperNumber.js @@ -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' ); @@ -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 ); }, /**