mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Remove unneeded empty functions
This commit is contained in:
parent
9067b0e397
commit
ddbe596696
@ -23,10 +23,6 @@ function onViewDestroy() {
|
||||
this.initialTabIndex = null;
|
||||
}
|
||||
|
||||
function onBeforeTabChange() {
|
||||
// no-op
|
||||
}
|
||||
|
||||
class TabbedView {
|
||||
constructor(view, params) {
|
||||
this.tabControllers = [];
|
||||
@ -79,7 +75,7 @@ class TabbedView {
|
||||
view.addEventListener('viewbeforehide', this.onPause.bind(this));
|
||||
|
||||
view.addEventListener('viewbeforeshow', function () {
|
||||
mainTabsManager.setTabs(view, currentTabIndex, self.getTabs, getTabContainers, onBeforeTabChange, onTabChange, false);
|
||||
mainTabsManager.setTabs(view, currentTabIndex, self.getTabs, getTabContainers, null, onTabChange, false);
|
||||
});
|
||||
|
||||
view.addEventListener('viewshow', function (e) {
|
||||
|
@ -262,10 +262,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
this.renderTab = function () {
|
||||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -273,10 +273,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
reloadItems();
|
||||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -298,10 +298,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
reloadItems();
|
||||
this.alphaPicker?.updateControls(getQuery());
|
||||
};
|
||||
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -239,10 +239,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
reloadItems(tabContent);
|
||||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -199,10 +199,6 @@ import Dashboard from '../../scripts/clientUtils';
|
||||
self.renderTab = function () {
|
||||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
self.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -246,10 +246,6 @@ import Dashboard from '../../scripts/clientUtils';
|
||||
self.renderTab = function () {
|
||||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
self.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
@ -297,10 +297,6 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
reloadItems(tabContent);
|
||||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
Loading…
Reference in New Issue
Block a user