Skip to content

Commit

Permalink
Improving documentation #268
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Aug 6, 2024
1 parent ebf71e7 commit 7f990c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/common/model/Material.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export default class Material extends PhetioObject implements MappedWrappedObjec
phetioDocumentation: 'Density of the material',
phetioReadOnly: !( providedOptions.hidden || providedOptions.custom ), // Read-only unless it's a mystery or custom material
rangePropertyOptions: {
reentrant: true, // needed for the range mutation in MaterialControlNode, see https://github.com/phetsims/density-buoyancy-common/issues/268
// When used in a MaterialControlNode, the component will override the rangeProperty, even when the sim is reset
// This is done in a recursive/reentrant link call, so we need to ensure that the value comparison is an equals function
reentrant: true,
valueComparisonStrategy: 'equalsFunction'
},
range: new Range( 0.8, 27000 ),
Expand Down

0 comments on commit 7f990c3

Please sign in to comment.