From 68dacaf1adf3ff7d96665ab6f07a32cc4746dd6f Mon Sep 17 00:00:00 2001 From: jbphet Date: Wed, 23 Mar 2022 15:41:00 -0600 Subject: [PATCH] TS conversion step, see https://github.com/phetsims/tambo/issues/160 --- js/demo/sim-like-components/model/BoxOfBalls.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/demo/sim-like-components/model/BoxOfBalls.ts b/js/demo/sim-like-components/model/BoxOfBalls.ts index f2873472..8b84a89e 100644 --- a/js/demo/sim-like-components/model/BoxOfBalls.ts +++ b/js/demo/sim-like-components/model/BoxOfBalls.ts @@ -3,7 +3,7 @@ // @ts-nocheck /** - * model of a box containing moving balls that bounce off the walls + * BoxOfBalls is a model of a box containing moving balls that bounce off the walls. */ import createObservableArray from '../../../../../axon/js/createObservableArray.js'; @@ -20,12 +20,12 @@ const MIN_X_OR_Y_VELOCITY = 30; const MAX_X_OR_Y_VELOCITY = 60; // helper function -function createRandomColor() { +const createRandomColor = () => { const r = Math.floor( dotRandom.nextDouble() * 256 ); const g = Math.floor( dotRandom.nextDouble() * 256 ); const b = Math.floor( dotRandom.nextDouble() * 256 ); return new Color( r, g, b ); -} +}; class BoxOfBalls {