From 2cf86b45c37a248f4822d6c04c2630b30effd6f2 Mon Sep 17 00:00:00 2001 From: Marla Schulz Date: Wed, 11 Jan 2023 16:24:42 -0700 Subject: [PATCH] Add disposal documentation, see: https://github.com/phetsims/number-play/issues/88 & https://github.com/phetsims/number-play/issues/83 --- js/common/model/CountingObject.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/common/model/CountingObject.ts b/js/common/model/CountingObject.ts index 5405b2f..401f70c 100644 --- a/js/common/model/CountingObject.ts +++ b/js/common/model/CountingObject.ts @@ -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 );