Closed pixelzoom closed 5 years ago
Thanks, a big no-no. Also, this is duplicated in the two subtypes and should be moved to RSBaseModel.
var userInteractionListener = function( userInteraction ) {
if ( userInteraction ) {
self.removeAllParticles();
}
};
userInteractionProperty
is now a param for RSBaseModel, created and passed in from each subtype. @pixelzoom would you mind reviewing?
👍 closing.
Noted while investigating #158.
RSBaseModel
usesuserInteractionProperty
, which is not undefined inRSBaseModel
. It's defined in subclasses RutherfordAtomModel and PlumPuddingModel. Reaching down in the class hierarchy is a definite no no.