Skip to content

Commit

Permalink
pass our visibleProperty to clockFaceNode, #165
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 20, 2021
1 parent 56f880d commit 160cbe7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/discrete/view/PeriodClockNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ class PeriodClockNode extends DiscreteMeasurementToolNode {
options );

// Synchronize visibility of the clock face, so we can short-circuit updates while it's invisible.
this.visibleProperty.link( visible => {
//REVIEW: can we just pass our visibleProperty in to be the clockFaceNode's visibleProperty?
clockFaceNode.visible = visible;
} );
clockFaceNode.setVisibleProperty( this.visibleProperty );

// Pointer areas
this.localBoundsProperty.link( localBounds => {
Expand Down

0 comments on commit 160cbe7

Please sign in to comment.