Skip to content

Commit

Permalink
allow SunConstants.componentEnabledListener to be overridden by optio…
Browse files Browse the repository at this point in the history
…ns in each sun component, phetsims/scenery#1112
  • Loading branch information
zepumph committed Nov 6, 2020
1 parent 0acb820 commit 744b3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/NaturalSelectionTimeControlNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class NaturalSelectionTimeControlNode extends HBox {
}
} );

this.enabledProperty.link( SunConstants.getComponentEnabledListener( this ) );
this.enabledProperty.link( enabled => SunConstants.componentEnabledListener( enabled, this ) );
}

/**
Expand Down

0 comments on commit 744b3bc

Please sign in to comment.