Skip to content

Commit

Permalink
Renamed [C|c]heckBox => [C|c]heckbox, see phetsims/tasks#910
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 12, 2018
1 parent 90209d9 commit 29f55bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/view/ISLCCheckboxItem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017, University of Colorado Boulder

/**
* A checkbox item displayed in an ISLCCheckboxPanel. Conforms to the interface of values passed to VerticalCheckBoxGroup
* A checkbox item displayed in an ISLCCheckboxPanel. Conforms to the interface of values passed to VerticalCheckboxGroup
*
* @author Sam Reid (PhET Interactive Simulations)
*/
Expand Down
10 changes: 5 additions & 5 deletions js/view/ISLCCheckboxPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( function( require ) {
var inverseSquareLawCommon = require( 'INVERSE_SQUARE_LAW_COMMON/inverseSquareLawCommon' );
var Panel = require( 'SUN/Panel' );
var Tandem = require( 'TANDEM/Tandem' );
var VerticalCheckBoxGroup = require( 'SUN/VerticalCheckBoxGroup' );
var VerticalCheckboxGroup = require( 'SUN/VerticalCheckboxGroup' );

/**
* @param {ISLCCheckboxItem[]} checkboxItems
Expand All @@ -34,14 +34,14 @@ define( function( require ) {
}, options );

// the check boxes in the group will be as wide as the labels are tall
var checkBoxWidth = _.max( checkboxItems.map( function( item ) {
var checkboxWidth = _.max( checkboxItems.map( function( item ) {
return item.content.height;
} ) );

assert && assert( checkBoxWidth > 0, 'checkBox width must be positive' );
assert && assert( checkboxWidth > 0, 'checkbox width must be positive' );

var checkboxGroup = new VerticalCheckBoxGroup( checkboxItems, {
boxWidth: checkBoxWidth
var checkboxGroup = new VerticalCheckboxGroup( checkboxItems, {
boxWidth: checkboxWidth
} );

Panel.call( this, checkboxGroup, options );
Expand Down

0 comments on commit 29f55bd

Please sign in to comment.