Closed zepumph closed 1 year ago
Unit tests are passing, I added another test case where it used to fail. Aqua fuzzing for phet and phet-io brand are good to go, and no type errors have been found. I'll check back here to see if CT is clear.
CT looks good
@matthew-blackman and I ran into a case in Projectile Motion (https://github.com/phetsims/projectile-motion/issues/317) where we changed an initial value of a Property and started getting assertions on reset because the initial value was out of range. We were able to solve it in our sim code with:
and equally as well for our case:
But then we realized that it is silly that NumberProperty.reset doesn't utilize this behavior by default. I'll take a look and see if we can use resetValueAndRange always.