From f9b753ca20b7885d076887fe93ffae9e51640dab Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Sat, 27 Aug 2022 11:15:28 -0600 Subject: [PATCH] Fix unlink, see https://github.com/phetsims/tasks/issues/1106 --- js/intro/view/CellEntry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/intro/view/CellEntry.js b/js/intro/view/CellEntry.js index 54df0e7c..29c18a1e 100644 --- a/js/intro/view/CellEntry.js +++ b/js/intro/view/CellEntry.js @@ -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 ); } /**