phetsims / neuron

"Neuron" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 3 forks source link

Use Events.trigger for particlesStateChanged #64

Closed samreid closed 9 years ago

samreid commented 9 years ago

Code is currently using:

this.particlesStateChangedProperty.set( !this.particlesStateChangedProperty.get() );

Would be much simpler to use Event.trigger('particlesStateChanged');

jbphet commented 9 years ago

I logged the same issue and addressed it, having failed to notice this issue. See #67. Closing.