1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove unused variables

This commit is contained in:
Bill Thornton 2021-01-26 22:20:12 -05:00
parent 6a60938b09
commit f60b7686d0
110 changed files with 242 additions and 277 deletions

View file

@ -54,7 +54,7 @@ import '../emby-button/emby-button';
});
}
function onButtonClick(e) {
function onButtonClick() {
const button = this;
const collapseContent = button.parentNode.querySelector('.collapseContent');

View file

@ -188,7 +188,7 @@ import Sortable from 'sortablejs';
});
}
function onSeriesTimerCreated(e, apiClient, data) {
function onSeriesTimerCreated() {
const itemsContainer = this;
if (getEventsToMonitor(itemsContainer).indexOf('seriestimers') !== -1) {
itemsContainer.notifyRefreshNeeded();

View file

@ -20,7 +20,7 @@ import ServerConnections from '../../components/ServerConnections';
}
}
function onClick(e) {
function onClick() {
const button = this;
const id = button.getAttribute('data-id');
const serverId = button.getAttribute('data-serverid');

View file

@ -15,7 +15,7 @@ import template from './emby-progressring.template.html';
if (window.MutationObserver) {
// create an observer instance
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
mutations.forEach(function () {
instance.setProgress(parseFloat(instance.getAttribute('data-progress') || '0'));
});
});

View file

@ -24,7 +24,7 @@ import ServerConnections from '../../components/ServerConnections';
return apiClient.updateFavoriteStatus(apiClient.getCurrentUserId(), itemId, !isFavorite);
}
function onClick(e) {
function onClick() {
const button = this;
const id = button.getAttribute('data-id');
const serverId = button.getAttribute('data-serverid');

View file

@ -57,7 +57,7 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
}
}
function onScroll(e) {
function onScroll() {
const scrollButtons = this;
const scroller = this.scroller;
@ -117,7 +117,7 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
return scrollSize;
}
function onScrollButtonClick(e) {
function onScrollButtonClick() {
const scroller = this.parentNode.nextSibling;
const direction = this.getAttribute('data-direction');

View file

@ -63,14 +63,14 @@ import 'webcomponents.js/webcomponents-lite';
return elem;
}
function onFocus(e) {
function onFocus() {
const label = getLabel(this);
if (label) {
label.classList.add('selectLabelFocused');
}
}
function onBlur(e) {
function onBlur() {
const label = getLabel(this);
if (label) {
label.classList.remove('selectLabelFocused');

View file

@ -105,7 +105,7 @@ import '../emby-input/emby-input';
});
}
function updateBubble(range, value, bubble, bubbleText) {
function updateBubble(range, value, bubble) {
requestAnimationFrame(function () {
const bubbleTrackRect = range.sliderBubbleTrack.getBoundingClientRect();
const bubbleRect = bubble.getBoundingClientRect();
@ -189,7 +189,7 @@ import '../emby-input/emby-input';
let hasHideClass = sliderBubble.classList.contains('hide');
dom.addEventListener(this, 'input', function (e) {
dom.addEventListener(this, 'input', function () {
this.dragging = true;
if (this.dataset.sliderKeepProgress !== 'true') {
@ -284,7 +284,7 @@ import '../emby-input/emby-input';
passive: true
});
dom.addEventListener(this, 'touchend', function (e) {
dom.addEventListener(this, 'touchend', function () {
const range = this;
setTimeout(function () {

View file

@ -15,7 +15,7 @@ import '../../assets/css/scrollstyles.scss';
newButton.classList.add(activeButtonClass);
}
function getTabPanel(tabs, index) {
function getTabPanel() {
return null;
}
@ -291,13 +291,13 @@ import '../../assets/css/scrollstyles.scss';
}
};
EmbyTabs.triggerBeforeTabChange = function (selected) {
EmbyTabs.triggerBeforeTabChange = function () {
const tabs = this;
triggerBeforeTabChange(tabs, tabs.selectedIndex());
};
EmbyTabs.triggerTabChange = function (selected) {
EmbyTabs.triggerTabChange = function () {
const tabs = this;
tabs.dispatchEvent(new CustomEvent('tabchange', {