You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do all types that require a dispose function have one? This should expose a public dispose function that calls this.disposeMyType(), where disposeMyType is a private function declared in the constructor. MyType should exactly match the filename.
For each common-code component (sun, scenery-phet, vegas, …) that opaquely registers observers or listeners, is there a call to that component’s dispose function, or is it obvious why it isn't necessary, or is there documentation about why dispose isn't called? An example of why no call to dispose is needed is if the component is used in a screen view that would never be removed from the scene graph.
The two defined dispose functions are in EnergyChunkNode and EnergyChunkWanderController. Another dynamic type, ElementFollower, has a method stopFollowing which unlinks its locationBeingFollowedProperty.
A similar blanket statement was added to implementation notes over in #265
There are also not any dynamically allocated UI common-code components used in this sim.
Related to code review #247
Searching for
dispose() {
, I find only 2 definitions ofdispose
. Due to deficiencies in #244 and #265, I have no way to determine if this is sufficient. implementation-notes.md should include this information in a general description of memory management. See for example the "Memory Management" subsection of https://github.com/phetsims/gas-properties/blob/master/doc/implementation-notes.md#general-considerations.The text was updated successfully, but these errors were encountered: