Closed pixelzoom closed 1 year ago
Fixed in the above commit. @Nancy-Salpepi since you verified #314, would you mind verifying this one in master? If it looks OK, please label as status:fixed-awaiting-deploy
.
Looks good on master!
To verify this issue in https://github.com/phetsims/qa/issues/967, follow the steps in https://github.com/phetsims/natural-selection/issues/315#issue-1302321172.
Please close this issue if it looks OK.
Looks good in 1.5.0-dev.5. Closing.
Similar to #314, for https://github.com/phetsims/qa/issues/818 ... I inspected occurrences of
link
andlazyLink
, looking for cases where restored state might be overwritten. I found this case, which was also present in the previous (1.4) release.The range of the Population graph's x-axis is overwritten when restoring state. To reproduce:
Relevant code in PopulationModel.js, line 183:
In general, if a listener for
aProperty
sets the value ofbProperty
, then that code typically needs to be short-circuited when restoring state. The general pattern is: