mattrasto / phase

Network visualization framework for complex systems and simulations
MIT License
9 stars 1 forks source link

Properly destroy morphs contained within phases #81

Closed mattrasto closed 5 years ago

mattrasto commented 5 years ago

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.

mattrasto commented 5 years ago

Implemented in 8a4b90bbbbd640d174e9be44c4a7d5e5d92e9337