phetsims / pendulum-lab

"Pendulum Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
4 stars 10 forks source link

FrictionSliderNode reset #59

Closed jonathanolson closed 9 years ago

jonathanolson commented 9 years ago

It seems like the slider node should listen to the frictionSlider value, so that when the frictionProperty is reset(), the value on the slider node will change to the corresponding value.

Then, we don't have to have a reset() function on FrictionSliderNode, AND if there is another place where we modify friction (say through 3rd party tools), then the slider will properly update.

See #56.

andrey-zelenkov commented 9 years ago

Made refactoring for FrictionSliderNode reset function. Reassign to @jonathanolson for verification.

jonathanolson commented 9 years ago

Looks good, thanks!