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 6ef5d11 commit f9b753c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/intro/view/CellEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class CellEntry {
this.node = node;

// @private {function}
this.visibilityListener = this.cell.appearsFilledProperty.linkAttribute( node, 'visible' );

this.visibilityListener = visible => {node.visible = visible;};
this.cell.appearsFilledProperty.link( this.visibilityListener );
}

/**
Expand Down

0 comments on commit f9b753c

Please sign in to comment.