diff --git a/src/components/tabbedview/tabbedview.js b/src/components/tabbedview/tabbedview.js index 46ae4c36d..fac54fd49 100644 --- a/src/components/tabbedview/tabbedview.js +++ b/src/components/tabbedview/tabbedview.js @@ -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) { diff --git a/src/controllers/movies/moviecollections.js b/src/controllers/movies/moviecollections.js index 8f2032da3..43f96be17 100644 --- a/src/controllers/movies/moviecollections.js +++ b/src/controllers/movies/moviecollections.js @@ -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 */ diff --git a/src/controllers/movies/movietrailers.js b/src/controllers/movies/movietrailers.js index a838b3693..fbf219ecf 100644 --- a/src/controllers/movies/movietrailers.js +++ b/src/controllers/movies/movietrailers.js @@ -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 */ diff --git a/src/controllers/music/musicalbums.js b/src/controllers/music/musicalbums.js index 25a86e391..2e9e0f797 100644 --- a/src/controllers/music/musicalbums.js +++ b/src/controllers/music/musicalbums.js @@ -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 */ diff --git a/src/controllers/music/musicartists.js b/src/controllers/music/musicartists.js index 3e2b51534..ee43c3fc9 100644 --- a/src/controllers/music/musicartists.js +++ b/src/controllers/music/musicartists.js @@ -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 */ diff --git a/src/controllers/music/songs.js b/src/controllers/music/songs.js index 303af6e69..061d67ae4 100644 --- a/src/controllers/music/songs.js +++ b/src/controllers/music/songs.js @@ -199,10 +199,6 @@ import Dashboard from '../../scripts/clientUtils'; self.renderTab = function () { reloadItems(tabContent); }; - - self.destroy = function () { - // TODO: Remove if unused - }; } /* eslint-enable indent */ diff --git a/src/controllers/shows/episodes.js b/src/controllers/shows/episodes.js index 7b42024e8..98f85d38d 100644 --- a/src/controllers/shows/episodes.js +++ b/src/controllers/shows/episodes.js @@ -246,10 +246,6 @@ import Dashboard from '../../scripts/clientUtils'; self.renderTab = function () { reloadItems(tabContent); }; - - self.destroy = function () { - // TODO: Remove if unused - }; } /* eslint-enable indent */ diff --git a/src/controllers/shows/tvshows.js b/src/controllers/shows/tvshows.js index b93ff0ff0..02a4a4543 100644 --- a/src/controllers/shows/tvshows.js +++ b/src/controllers/shows/tvshows.js @@ -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 */