Skip to content

Commit

Permalink
Combine object literals, see phetsims/scenery-phet#451
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 29, 2019
1 parent ae43373 commit 3fc997e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/view/CircuitElementEditNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ define( function( require ) {
valueProperty.lazyLink( valuePropertyListener );

// Create the controls
var numberControl = new NumberControl( title, valueProperty, circuitElement.editableRange, _.extend( {
var numberControl = new NumberControl( title, valueProperty, circuitElement.editableRange, {
titleMaxWidth: NUMBER_CONTROL_ELEMENT_MAX_WIDTH,
valueMaxWidth: NUMBER_CONTROL_ELEMENT_MAX_WIDTH,
tandem: tandem.createTandem( 'numberControl' ),
valuePattern: valuePattern
}, {
valuePattern: valuePattern,

// Prevent overlap with the navigation bar
thumbTouchAreaYDilation: 5,
Expand All @@ -56,7 +55,7 @@ define( function( require ) {
valueFont: FONT,
decimalPlaces: circuitElement.numberOfDecimalPlaces,
delta: circuitElement.editorDelta
} ) );
} );

var children = [];

Expand Down

0 comments on commit 3fc997e

Please sign in to comment.