Skip to content

Commit

Permalink
Pass options through to AmmeterNode, see #531
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 22, 2020
1 parent 16d81c2 commit 25a5438
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/view/AmmeterNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ class AmmeterNode extends Node {
]
} );

super( {
children: [ bodyNode, wireNode, probeNode ],
tandem: options.tandem // TODO: merge all options?
} );
assert && assert( !options.hasOwnProperty( 'children' ), 'children will be supplied by AmmeterNode' );
options.children = [ bodyNode, wireNode, probeNode ];

super( options );

// @public (read-only) {ProbeNode}
this.probeNode = probeNode;
Expand Down

0 comments on commit 25a5438

Please sign in to comment.