The destroy() function inside of the Morph class only removes the reference to the morph in the Network class (accessed via this.network.morphs). If a morph is attached to a Phase object, it will not be properly destroyed. We should also check the morph's associated phase's this.morphs attribute.
The
destroy()
function inside of theMorph
class only removes the reference to the morph in theNetwork
class (accessed viathis.network.morphs
). If a morph is attached to aPhase
object, it will not be properly destroyed. We should also check the morph's associated phase'sthis.morphs
attribute.