Skip to content

Commit

Permalink
update documentation and add visiblePropertyOptions to config, #1046
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 14, 2020
1 parent e467353 commit 28948e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/nodes/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5272,6 +5272,15 @@ inherit( PhetioObject, Node, {
*/
initializePhetioObject: function( baseOptions, config ) {

config = merge( {

// This option is used to create the instrumented, default PhET-iO visibleProperty. These options should not
// be provided if a `visibleProperty` was provided to this Node. This option is a bit buried because it can only
// be used when the Node is being instrumented, which is when the default, instrumented visibleProperty is
// conditionally created. We don't want to store these on the Node, and thus they aren't support through `mutate()`.
visiblePropertyOptions: null
}, config );

// Track this, so we only override our visibleProperty once.
const wasInstrumented = this.isPhetioInstrumented();

Expand Down

0 comments on commit 28948e9

Please sign in to comment.