Skip to content

Commit

Permalink
Instrument the PreferencesDialog view, phetsims/joist#744
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Mar 29, 2022
1 parent 86507bb commit f3b5d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/buttons/StickyToggleButtonModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
}

Expand Down
2 changes: 1 addition & 1 deletion js/buttons/ToggleButtonModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
}

Expand Down

0 comments on commit f3b5d5d

Please sign in to comment.