Skip to content

Commit 61cc79d

Browse files
committed
pitchdrummatrix.js var->let cleanup final
1 parent bb84612 commit 61cc79d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/widgets/pitchdrummatrix.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function PitchDrumMatrix() {
179179
// first column and a table of buttons in the second column.
180180
var pdmTable = docById("pdmTable");
181181

182-
var j = 0;
182+
let j = 0;
183183
for (let i = 0; i < this.rowLabels.length; i++) {
184184
if (this.rowLabels[i].toLowerCase() === _("rest")) {
185185
// In case there are rest notes included.
@@ -241,7 +241,7 @@ function PitchDrumMatrix() {
241241
labelCell.className = "headcol";
242242
labelCell.innerHTML = "";
243243

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);
245245
var outerDiv = docById("pdmOuterDiv");
246246
if (pdmTable.rows.length + 2 > n) {
247247
outerDiv.style.height = window.innerHeight / 2 + "px";
@@ -396,7 +396,7 @@ function PitchDrumMatrix() {
396396
cell.setAttribute("id", drumIdx); // Column // row.cells.length - 1);
397397

398398
// Work around i8n bug in Firefox.
399-
var name = getDrumName(drumname);
399+
let name = getDrumName(drumname);
400400
if (name === "") {
401401
name = drumname;
402402
}

0 commit comments

Comments
 (0)