Skip to content

Commit

Permalink
format #360
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed May 15, 2018
1 parent a97c8c7 commit b9df626
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/ToggleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ define( function( require ) {
* @constructor
*/
function ToggleNode( elements, valueProperty, options ) {

assert && assert( Array.isArray( elements ), 'elements should be an array' );
if ( assert ) {
elements.forEach( function( element ) {
Expand All @@ -31,10 +32,11 @@ define( function( require ) {
assert( element.node instanceof Node, 'element.node should be a node' );
} );
}

options = _.extend( {

// By default, line up the centers of all nodes with the center of the first node. NOTE this is different than
// in ToggleNode
// By default, line up the centers of all nodes with the center of the first node.
// NOTE this is different than in ToggleNode
alignChildren: ToggleNode.CENTER
}, options );

Expand Down

0 comments on commit b9df626

Please sign in to comment.