Skip to content

Commit

Permalink
pitchdrummatrix.js var->let cleanup final
Browse files Browse the repository at this point in the history
  • Loading branch information
ricknjacky committed Nov 30, 2020
1 parent 5f77691 commit 6fbbb49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/widgets/pitchdrummatrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 6fbbb49

Please sign in to comment.