Skip to content

Commit

Permalink
use strings.join for info dialog layout, #165
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 20, 2021
1 parent c3931c7 commit bc42d76
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions js/wavepacket/view/WavePacketInfoDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,7 @@ class WavePacketInfoDialog extends Dialog {
StringUtils.fillIn( fourierMakingWavesStrings.symbolsDialog.x, { x: FMWSymbols.x } )
];

// RichText markup with one symbol's key per line
//REVIEW: const text = strings.join( '<br>' )
let text = '';
for ( let i = 0; i < strings.length; i++ ) {
text += strings[ i ];
if ( i < strings.length - 1 ) {
text += '<br>';
}
}

const richText = new RichText( text, {
const richText = new RichText( strings.join( '<br>' ), {
font: FMWConstants.EQUATION_FONT,
leading: 11
} );
Expand Down

0 comments on commit bc42d76

Please sign in to comment.