Skip to content

Commit

Permalink
use camelCase instead of the identifier straight, #540
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 11, 2019
1 parent 6468604 commit 67ec52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/keypad/Keypad.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ define( require => {
* @param {Tandem} keyPadTandem
* @returns {RectangularPushButton} keyNode
*/
function createKeyNode( keyObject, keyAccumulator, width, height, keyPadTandem, options ) {
function createKeyNode( keyObject, keyAccumulator, width, height, keyPadTandem, options ) {

options = merge( {
buttonColor: 'white',
Expand All @@ -178,7 +178,7 @@ define( require => {
listener: function() {
keyAccumulator.handleKeyPressed( keyObject.identifier );
},
tandem: keyPadTandem.createTandem( `${keyObject.identifier}Button` )
tandem: keyPadTandem.createTandem( `${_.camelCase( keyObject.identifier )}Button` )
} );
keyNode.scale( width / keyNode.width, height / keyNode.height );
return keyNode;
Expand Down

0 comments on commit 67ec52a

Please sign in to comment.