Skip to content

Commit

Permalink
Fix unlink, see phetsims/tasks#1106
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 27, 2022
1 parent 26da61e commit 72f4819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/DynamicSeriesNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ class DynamicSeriesNode extends CanvasNode {
this.dynamicSeries = dynamicSeries;

// set visible with Property, handle saved for disposal
const visibilityListener = dynamicSeries.visibleProperty.linkAttribute( this, 'visible' );
const visibilityListener = visible => {this.visible = visible;};
dynamicSeries.visibleProperty.link( visibilityListener );

// redraw data
const dynamicSeriesListener = () => {
Expand Down

0 comments on commit 72f4819

Please sign in to comment.