File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ function PitchDrumMatrix() {
179
179
// first column and a table of buttons in the second column.
180
180
var pdmTable = docById ( "pdmTable" ) ;
181
181
182
- var j = 0 ;
182
+ let j = 0 ;
183
183
for ( let i = 0 ; i < this . rowLabels . length ; i ++ ) {
184
184
if ( this . rowLabels [ i ] . toLowerCase ( ) === _ ( "rest" ) ) {
185
185
// In case there are rest notes included.
@@ -241,7 +241,7 @@ function PitchDrumMatrix() {
241
241
labelCell . className = "headcol" ;
242
242
labelCell . innerHTML = "" ;
243
243
244
- var n = Math . max ( Math . floor ( ( window . innerHeight * 0.5 ) / 100 ) , 8 ) ;
244
+ let n = Math . max ( Math . floor ( ( window . innerHeight * 0.5 ) / 100 ) , 8 ) ;
245
245
var outerDiv = docById ( "pdmOuterDiv" ) ;
246
246
if ( pdmTable . rows . length + 2 > n ) {
247
247
outerDiv . style . height = window . innerHeight / 2 + "px" ;
@@ -396,7 +396,7 @@ function PitchDrumMatrix() {
396
396
cell . setAttribute ( "id" , drumIdx ) ; // Column // row.cells.length - 1);
397
397
398
398
// Work around i8n bug in Firefox.
399
- var name = getDrumName ( drumname ) ;
399
+ let name = getDrumName ( drumname ) ;
400
400
if ( name === "" ) {
401
401
name = drumname ;
402
402
}
You can’t perform that action at this time.
0 commit comments