From 6fbbb49a40f842c6ffa5bb3dcb0a87e32e6a349e Mon Sep 17 00:00:00 2001 From: ricknjacky Date: Sun, 29 Nov 2020 16:49:00 +0530 Subject: [PATCH] pitchdrummatrix.js var->let cleanup final --- js/widgets/pitchdrummatrix.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/widgets/pitchdrummatrix.js b/js/widgets/pitchdrummatrix.js index 7bf6fcebd6..7b0699aaf5 100644 --- a/js/widgets/pitchdrummatrix.js +++ b/js/widgets/pitchdrummatrix.js @@ -179,7 +179,7 @@ function PitchDrumMatrix() { // first column and a table of buttons in the second column. var pdmTable = docById("pdmTable"); - var j = 0; + let j = 0; for (let i = 0; i < this.rowLabels.length; i++) { if (this.rowLabels[i].toLowerCase() === _("rest")) { // In case there are rest notes included. @@ -241,7 +241,7 @@ function PitchDrumMatrix() { labelCell.className = "headcol"; labelCell.innerHTML = ""; - var n = Math.max(Math.floor((window.innerHeight * 0.5) / 100), 8); + let n = Math.max(Math.floor((window.innerHeight * 0.5) / 100), 8); var outerDiv = docById("pdmOuterDiv"); if (pdmTable.rows.length + 2 > n) { outerDiv.style.height = window.innerHeight / 2 + "px"; @@ -396,7 +396,7 @@ function PitchDrumMatrix() { cell.setAttribute("id", drumIdx); // Column // row.cells.length - 1); // Work around i8n bug in Firefox. - var name = getDrumName(drumname); + let name = getDrumName(drumname); if (name === "") { name = drumname; }