Skip to content

Commit

Permalink
move noRealRootsNode.visibleProperty phetioReadOnly:false from overri…
Browse files Browse the repository at this point in the history
…des.js to code, #148
  • Loading branch information
pixelzoom committed Mar 5, 2021
1 parent 063b3ce commit 33868ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions js/graphing-quadratics-phet-io-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ window.phet.preloads.phetio.phetioElementsOverrides =
"graphingQuadratics.standardFormScreen.view.leftPointToolNode.visibleProperty": {
"phetioFeatured": true
},
"graphingQuadratics.standardFormScreen.view.noRealRootsNode.visibleProperty": {
"phetioReadOnly": true
},
"graphingQuadratics.standardFormScreen.view.rightPointToolNode.visibleProperty": {
"phetioFeatured": true
},
Expand Down
4 changes: 2 additions & 2 deletions js/standardform/view/NoRealRootsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class NoRealRootsNode extends Node {

// phet-io
tandem: Tandem.REQUIRED,
phetioDocumentation: 'displays NO REAL ROOTS when the interactive quadratic has no real roots'

phetioDocumentation: 'displays NO REAL ROOTS when the interactive quadratic has no real roots',
visiblePropertyOptions: { phetioReadOnly: true } // because visibility is derived below
}, options );

const textNode = new Text( graphingQuadraticsStrings.noRealRoots, {
Expand Down

0 comments on commit 33868ec

Please sign in to comment.