Skip to content

Commit 14c3bce

Browse files
committed
Format tempo.js to pass Prettier check
Signed-off-by: Ady0333 <adityashinde1525@gmail.com>
1 parent f43da00 commit 14c3bce

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

js/widgets/tempo.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,15 @@ class Tempo {
107107
};
108108

109109
this._save_lock = false;
110-
widgetWindow.addButton(
111-
"export-chunk.svg",
112-
Tempo.ICONSIZE,
113-
_("Save tempo"),
114-
""
115-
).onclick = () => {
116-
// Debounce button
117-
if (!this._get_save_lock()) {
118-
this._save_lock = true;
119-
this._saveTempo();
120-
setTimeout(() => (this._save_lock = false), 1000);
121-
}
122-
};
110+
widgetWindow.addButton("export-chunk.svg", Tempo.ICONSIZE, _("Save tempo"), "").onclick =
111+
() => {
112+
// Debounce button
113+
if (!this._get_save_lock()) {
114+
this._save_lock = true;
115+
this._saveTempo();
116+
setTimeout(() => (this._save_lock = false), 1000);
117+
}
118+
};
123119

124120
this.bodyTable = document.createElement("table");
125121
this.widgetWindow.getWidgetBody().appendChild(this.bodyTable);
@@ -143,13 +139,19 @@ class Tempo {
143139
Tempo.ICONSIZE,
144140
_("speed up"),
145141
r1.insertCell()
146-
).onclick = (i => () => this.speedUp(i))(i);
142+
).onclick = (
143+
i => () =>
144+
this.speedUp(i)
145+
)(i);
147146
widgetWindow.addButton(
148147
"down.svg",
149148
Tempo.ICONSIZE,
150149
_("slow down"),
151150
r2.insertCell()
152-
).onclick = (i => () => this.slowDown(i))(i);
151+
).onclick = (
152+
i => () =>
153+
this.slowDown(i)
154+
)(i);
153155

154156
this.BPMInputs[i] = widgetWindow.addInputButton(this.BPMs[i], r3.insertCell());
155157
this.tempoCanvases[i] = document.createElement("canvas");

0 commit comments

Comments
 (0)