Skip to content

Commit 52344d9

Browse files
committed
lint
1 parent 16bfb43 commit 52344d9

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

js/widgets/help.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class HelpWidget {
6969
* @returns {void}
7070
*/
7171
_setup(useActiveBlock) {
72-
const iconSize = HelpWidget.ICONSIZE;
7372
// Which help page are we on?
7473
let page = 0;
7574

js/widgets/musickeyboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ function MusicKeyboard(activity) {
12831283

12841284
mkbTableRow = mkbTable.insertRow();
12851285
mkbTableRow.style.position = "sticky";
1286-
mkbTableRow.style.bottom = "0px"
1286+
mkbTableRow.style.bottom = "0px";
12871287
cell = mkbTableRow.insertCell();
12881288
cell.style.backgroundColor = platformColor.graphicsLabelBackground;
12891289
cell.style.fontSize = this._cellScale * 100 + "%";

js/widgets/phrasemaker.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -150,27 +150,27 @@ class PhraseMaker {
150150
this.columnBlocksMap = [];
151151
}
152152

153-
stylePhraseMaker(){
153+
stylePhraseMaker(){
154154

155155
var floatingWindowsDiv = document.getElementById("floatingWindows");
156156
var windowFrameElements = floatingWindowsDiv.querySelectorAll(".windowFrame");
157157

158158
for (var i = 0; i < windowFrameElements.length; i++) {
159-
var windowFrame = windowFrameElements[i];
160-
var wfWinBody = document.querySelector(".wfWinBody");
161-
var wfbWidget = document.querySelector(".wfbWidget");
162-
wfbWidget.style.overflow = "auto"
163-
wfbWidget.style.width = "-webkit-fill-available"
164-
wfbWidget.style.height = "-webkit-fill-available"
165-
windowFrame.style.height = "405px";
166-
windowFrame.style.width = "685px";
167-
wfWinBody.style.position = "absolute";
168-
wfWinBody.style.overflow = "auto";
169-
wfWinBody.style.width = "-webkit-fill-available";
170-
wfWinBody.style.height = "-webkit-fill-available";
171-
wfWinBody.style.background = "#cccccc";
172-
wfbWidget.style.position = "absolute";
173-
wfbWidget.style.left = "55px";
159+
var windowFrame = windowFrameElements[i];
160+
var wfWinBody = document.querySelector(".wfWinBody");
161+
var wfbWidget = document.querySelector(".wfbWidget");
162+
wfbWidget.style.overflow = "auto";
163+
wfbWidget.style.width = "-webkit-fill-available";
164+
wfbWidget.style.height = "-webkit-fill-available";
165+
windowFrame.style.height = "405px";
166+
windowFrame.style.width = "685px";
167+
wfWinBody.style.position = "absolute";
168+
wfWinBody.style.overflow = "auto";
169+
wfWinBody.style.width = "-webkit-fill-available";
170+
wfWinBody.style.height = "-webkit-fill-available";
171+
wfWinBody.style.background = "#cccccc";
172+
wfbWidget.style.position = "absolute";
173+
wfbWidget.style.left = "55px";
174174
}
175175
}
176176

@@ -705,15 +705,15 @@ class PhraseMaker {
705705
// An extra row for the note and tuplet values
706706
ptmTableRow = ptmTable.insertRow();
707707
ptmCell = ptmTableRow.insertCell();
708-
ptmTableRow.setAttribute('id', 'bottomRow');
708+
ptmTableRow.setAttribute("id", "bottomRow");
709709
ptmTableRow.style.position = "sticky";
710-
ptmTableRow.style.bottom = '0px';
711-
ptmTableRow.style.zIndex = '1';
710+
ptmTableRow.style.bottom = "0px";
711+
ptmTableRow.style.zIndex = "1";
712712

713713
ptmCell.setAttribute("colspan", "2");
714714
ptmCell.style.position = "sticky";
715-
ptmCell.style.left = '1.2px';
716-
ptmCell.style.zIndex = '1';
715+
ptmCell.style.left = "1.2px";
716+
ptmCell.style.zIndex = "1";
717717
ptmCell.className = "headcol"; // This cell is fixed horizontally.
718718

719719
tempTable = document.createElement("table");

js/widgets/sampler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function SampleWidget() {
139139
};
140140

141141
this.showSampleTypeError = function () {
142-
this.activity.errorMsg(_("Upload failed: Sample is not a .wav file."), this.timbreBlock);
142+
this.activity.errorMsg(_("Upload failed: Sample is not a .wav file."), this.timbreBlock);
143143
};
144144

145145
this.__save = function () {
@@ -267,7 +267,7 @@ function SampleWidget() {
267267
// eslint-disable-next-line no-unused-vars
268268
reader.onload = function (event) {
269269
// if the file is of .wav type, save it
270-
if (reader.result.substring(reader.result.indexOf(":")+1, reader.result.indexOf(";")) === 'audio/wav') {
270+
if (reader.result.substring(reader.result.indexOf(":")+1, reader.result.indexOf(";")) === "audio/wav") {
271271
that.sampleData = reader.result;
272272
that.sampleName = fileChooser.files[0].name;
273273
that._addSample();

0 commit comments

Comments
 (0)