Skip to content

Commit

Permalink
Remove unused variables resp. add underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodo161 committed Jan 24, 2024
1 parent cc3400c commit d32fcab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/thyme/components/seek_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SeekBar extends Component {
addChapterTooltips() {
const element = this.element;

element.addEventListener("mousemove", function (evt) {
element.addEventListener("mousemove", function (_evt) {
const previous = thymeAttributes.chapterManager.previousChapterStart();
const info = $("#c-" + $.escapeSelector(previous)).text().split(":")[0];
element.setAttribute("title", info);
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/thyme/thyme_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ $(document).on("turbolinks:load", function () {
}
// initialize attributes
const video = document.getElementById("video-edit");
const mediumId = thymeEdit.dataset.medium;
thymeAttributes.video = video;
thymeAttributes.mediumId = thymeEdit.dataset.medium;

Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/thyme/thyme_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ $(document).on("turbolinks:load", function () {
const annotationArea = new AnnotationArea(true, colorFunc, onClose, isValid);
thymeAttributes.annotationArea = annotationArea;

function strokeColorFunc(annotation) {
function strokeColorFunc(_annotation) {
return "black";
}

function sizeFunc(annotation) {
function sizeFunc(_annotation) {
return false;
}

Expand Down

0 comments on commit d32fcab

Please sign in to comment.