phetsims / build-a-nucleus

"Build a Nucleus" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
0 stars 5 forks source link

Move restorePreviousNucleonNumber and removeNucleonImmediatelyFromAtom from view to model #142

Closed Luisav1 closed 1 year ago

Luisav1 commented 1 year ago

From #112. restorePreviousNucleonNumber() and removeNucleonImmediatelyFromAtom() in DecayScreenView both only have model components so they can be moved to DecayModel.

zepumph commented 1 year ago

removeNucleonImmediatelyFromAtom uses animateAndRemoveParticle, so let's keep these in the view. I'll make them prototype functions though and see if we like that.