diff --git a/js/buttons/StickyToggleButtonModel.js b/js/buttons/StickyToggleButtonModel.js index e92befc9..5915cba7 100644 --- a/js/buttons/StickyToggleButtonModel.js +++ b/js/buttons/StickyToggleButtonModel.js @@ -108,7 +108,7 @@ class StickyToggleButtonModel extends ButtonModel { this.downProperty.unlink( downListener ); this.enabledProperty.unlink( enabledPropertyOnListener ); valueProperty.unlink( valuePropertyListener ); - this.toggledEmitter.removeListener( toggleListener ); + this.toggledEmitter.dispose(); }; } diff --git a/js/buttons/ToggleButtonModel.js b/js/buttons/ToggleButtonModel.js index 0c914516..25d3e641 100644 --- a/js/buttons/ToggleButtonModel.js +++ b/js/buttons/ToggleButtonModel.js @@ -63,7 +63,7 @@ class ToggleButtonModel extends ButtonModel { // @private - dispose items specific to this instance this.disposeToggleButtonModel = () => { this.downProperty.unlink( downListener ); - this.toggledEmitter.removeListener( toggleListener ); + this.toggledEmitter.dispose(); }; }