From 29f55bdaf83dcc6d7e793f4d7d400c91c09300fd Mon Sep 17 00:00:00 2001 From: samreid Date: Thu, 11 Jan 2018 19:19:08 -0700 Subject: [PATCH] Renamed [C|c]heckBox => [C|c]heckbox, see https://github.com/phetsims/tasks/issues/910 --- js/view/ISLCCheckboxItem.js | 2 +- js/view/ISLCCheckboxPanel.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/view/ISLCCheckboxItem.js b/js/view/ISLCCheckboxItem.js index 83857e3..d7fd8af 100644 --- a/js/view/ISLCCheckboxItem.js +++ b/js/view/ISLCCheckboxItem.js @@ -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) */ diff --git a/js/view/ISLCCheckboxPanel.js b/js/view/ISLCCheckboxPanel.js index 8f6084a..681f78f 100644 --- a/js/view/ISLCCheckboxPanel.js +++ b/js/view/ISLCCheckboxPanel.js @@ -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 @@ -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 );