Skip to content

Commit

Permalink
Make Tandem optional in PhetioDynamicElementContainer and immediate s…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 28, 2022
1 parent 4bd93b0 commit 413cb2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/PhetioCapsule.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PhetioCapsule extends PhetioDynamicElementContainer {
constructor( createElement, defaultArguments, options ) {

options = merge( {
tandem: Tandem.REQUIRED,
tandem: Tandem.OPTIONAL,

// {string} The capsule's tandem name must have this suffix, and the base tandem name for its wrapped element
// will consist of the capsule's tandem name with this suffix stripped off.
Expand Down
2 changes: 1 addition & 1 deletion js/PhetioDynamicElementContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class PhetioDynamicElementContainer extends PhetioObject {

options = merge( {
phetioState: false, // elements are included in state, but the container will exist in the downstream sim.
tandem: Tandem.REQUIRED,
tandem: Tandem.OPTIONAL,

// By default, a PhetioDynamicElementContainer's elements are included in state such that on every setState call,
// the elements are cleared out by the phetioStateEngine so elements in the state can be added to the empty group.
Expand Down
2 changes: 1 addition & 1 deletion js/PhetioGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PhetioGroup extends PhetioDynamicElementContainer {
constructor( createElement, defaultArguments, options ) {

options = merge( {
tandem: Tandem.REQUIRED,
tandem: Tandem.OPTIONAL,

// {string} The group's tandem name must have this suffix, and the base tandem name for elements of
// the group will consist of the group's tandem name with this suffix stripped off.
Expand Down

0 comments on commit 413cb2d

Please sign in to comment.