Skip to content

Commit

Permalink
Add disposal documentation, see: phetsims/number-play#88 & phetsims/n…
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jan 11, 2023
1 parent d2d5089 commit 2cf86b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/common/model/CountingObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,16 @@ class CountingObject {

return result;
}

public dispose(): void {
this.numberValueProperty.dispose();
this.positionProperty.dispose();
this.userControlledProperty.dispose();
this.scaleProperty.dispose();
this.handleOpacityProperty.dispose();
this.includeInSumProperty.dispose();
}

}

countingCommon.register( 'CountingObject', CountingObject );
Expand Down

0 comments on commit 2cf86b4

Please sign in to comment.