Skip to content

Commit bab95d7

Browse files
author
Anvita Prasad
committed
Removed extra blank lines
1 parent cfc5c35 commit bab95d7

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

js/activity.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ class Activity {
30123012
if (docById("labelDiv").classList.contains("hasKeyboard")) {
30133013
return;
30143014
}
3015-
3015+
30163016
if (this.keyboardEnableFlag) {
30173017
if (
30183018
docById("BPMInput") !== null &&
@@ -3045,7 +3045,6 @@ class Activity {
30453045
return;
30463046
}
30473047
}
3048-
30493048
// const BACKSPACE = 8;
30503049
const TAB = 9;
30513050
if (event.keyCode === TAB) {
@@ -3077,7 +3076,6 @@ class Activity {
30773076
const KEYCODE_S = 83; // so
30783077
const KEYCODE_L = 76; // la
30793078
const KEYCODE_T = 84; // ti
3080-
30813079
const disableKeys =
30823080
docById("lilypondModal").style.display === "block" ||
30833081
this.searchWidget.style.visibility === "visible" ||
@@ -3087,15 +3085,13 @@ class Activity {
30873085
docById("paste").style.visibility === "visible" ||
30883086
docById("wheelDiv").style.display === "" ||
30893087
this.turtles.running();
3090-
30913088
const widgetTitle = document.getElementsByClassName("wftTitle");
30923089
for (let i = 0; i < widgetTitle.length; i++) {
30933090
if (widgetTitle[i].innerHTML === "tempo") {
30943091
this.inTempoWidget = true;
30953092
break;
30963093
}
30973094
}
3098-
30993095
if ((event.altKey && !disableKeys) || (event.keyCode == 13) || (event.key == "/") || (event.key == "\\") ) {
31003096
switch (event.keyCode) {
31013097
case 66: // 'B'

js/widgets/pitchslider.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,8 @@ class PitchSlider {
5555
this._cellScale = 1.0;
5656
this.widgetWindow = window.widgetWindows.windowFor(this, "pitch slider", "slider", true);
5757

58-
5958
this.isActive = true;
6059

61-
6260
activity.logo.pitchSlider = this;
6361

6462
this.widgetWindow.onclose = () => {
@@ -68,7 +66,6 @@ class PitchSlider {
6866
this.widgetWindow.destroy();
6967
};
7068

71-
7269
const keyHandler = (event) => {
7370
if (!this.isActive) return;
7471

@@ -78,7 +75,6 @@ class PitchSlider {
7875
event.preventDefault();
7976
event.stopPropagation();
8077

81-
8278
const sliderToUse = this.activeSlider !== null ? this.activeSlider : 0;
8379

8480
if (this.sliders[sliderToUse]) {
@@ -95,7 +91,6 @@ class PitchSlider {
9591
slider.value = Math.max(currentValue / PitchSlider.SEMITONE, min);
9692
}
9793

98-
9994
const inputEvent = new Event("input", { bubbles: true });
10095
slider.dispatchEvent(inputEvent);
10196
}
@@ -104,7 +99,6 @@ class PitchSlider {
10499
}
105100
};
106101

107-
108102
document.addEventListener("keydown", keyHandler, true);
109103

110104
const MakeToolbar = (id) => {
@@ -127,12 +121,10 @@ class PitchSlider {
127121
this.activeSlider = id;
128122
}
129123

130-
131124
slider.addEventListener("mousedown", () => {
132125
this.activeSlider = id;
133126
});
134127

135-
136128
const freqLabel = document.createElement("div");
137129
freqLabel.className = "wfbtItem";
138130
toolBarDiv.appendChild(freqLabel);

0 commit comments

Comments
 (0)