Skip to content

Commit

Permalink
add missing instrumentation #38
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
  • Loading branch information
pixelzoom committed Jun 7, 2018
1 parent 33cb5f6 commit 0c6d1ba
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions js/systems/view/ParallelSpringControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ define( function( require ) {
topSpring.springConstantRange.min,
topSpring.springConstantRange.getCenter(),
topSpring.springConstantRange.max
]
],
tandem: options.tandem.createTandem( 'topSpringConstantControl' )
} );

var bottomSpring = system.bottomSpring;
Expand All @@ -68,7 +69,8 @@ define( function( require ) {
bottomSpring.springConstantRange.min,
bottomSpring.springConstantRange.getCenter(),
bottomSpring.springConstantRange.max
]
],
tandem: options.tandem.createTandem( 'bottomSpringConstantControl' )
} );

// "top" control above "bottom" control, to reflect layout of system
Expand All @@ -79,11 +81,14 @@ define( function( require ) {
topSpringConstantControl,
new HSeparator( Math.max( topSpringConstantControl.width, bottomSpringConstantControl.width ), HookesLawConstants.SEPARATOR_OPTIONS ),
bottomSpringConstantControl
]
],
tandem: options.tandem.createTandem( 'springControls' )
} );

var appliedForceControl = new AppliedForceControl( system.equivalentSpring.appliedForceProperty,
system.equivalentSpring.appliedForceRange, numberOfInteractionsInProgressProperty );
system.equivalentSpring.appliedForceRange, numberOfInteractionsInProgressProperty, {
tandem: options.tandem.createTandem( 'appliedForceControl' )
} );

assert && assert( !options.children, 'ParallelSpringControls sets children' );
options.children = [
Expand Down

0 comments on commit 0c6d1ba

Please sign in to comment.