Skip to content

Commit 029f16d

Browse files
committed
Prettier on aiwidget.js
1 parent dd58281 commit 029f16d

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

js/widgets/aiwidget.js

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,8 @@ function AIWidget() {
665665
staffBlocksMap[staffIndex].repeatBlock[prevrepeatnameddo][4][3] = blockId;
666666
}
667667
if (afternamedo != -1) {
668-
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][
669-
afternamedo
670-
][4][1] = null;
668+
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][afternamedo][4][1] =
669+
null;
671670
}
672671

673672
staffBlocksMap[staffIndex].baseBlocks[repeatId.start][0][
@@ -834,21 +833,17 @@ function AIWidget() {
834833
};
835834

836835
this._save_lock = false;
837-
widgetWindow.addButton(
838-
"export-chunk.svg",
839-
ICONSIZE,
840-
_("Save sample"),
841-
""
842-
).onclick = function () {
843-
// Debounce button
844-
if (!that._get_save_lock()) {
845-
that._save_lock = true;
846-
that._saveSample();
847-
setTimeout(function () {
848-
that._save_lock = false;
849-
}, 1000);
850-
}
851-
};
836+
widgetWindow.addButton("export-chunk.svg", ICONSIZE, _("Save sample"), "").onclick =
837+
function () {
838+
// Debounce button
839+
if (!that._get_save_lock()) {
840+
that._save_lock = true;
841+
that._saveSample();
842+
setTimeout(function () {
843+
that._save_lock = false;
844+
}, 1000);
845+
}
846+
};
852847

853848
widgetWindow.sendToCenter();
854849
this.widgetWindow = widgetWindow;

0 commit comments

Comments
 (0)