Skip to content

Commit

Permalink
Initial instrumentation for scenery-phet demo, see phetsims/scenery-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 14, 2018
1 parent e23a9dc commit f75f530
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ define( require => {
// @private button, will be set to correct value when property observer is registered
// TODO: buttonNode should not get passed all the comboBox options. This seems like a codesmell, see https://github.com/phetsims/sun/issues/314
this.buttonNode = new ButtonNode( new ComboBoxItemNode( items[ 0 ], itemWidth, itemHeight, options.itemXMargin, {
align: options.align
align: options.align,
tandem: options.tandem.createTandem( 'buttonNode' )
} ), options );
this.addChild( this.buttonNode );

Expand Down Expand Up @@ -348,7 +349,8 @@ define( require => {
return item.value === value;
} );
this.buttonNode.setItemNode( new ComboBoxItemNode( item, itemWidth, itemHeight, options.itemXMargin, {
align: options.align
align: options.align,
tandem: options.tandem.createTandem( 'itemNodeForButton' + item.value.label )
} ) );
};
property.link( propertyObserver );
Expand Down

0 comments on commit f75f530

Please sign in to comment.