From 2d4363622922be4d37b678c66816bd9e18818d6b Mon Sep 17 00:00:00 2001 From: collin Date: Tue, 25 May 2021 11:59:37 -0400 Subject: [PATCH] remove unnecessary MenuList setMode --- app/controlls/MenuList.js | 10 ---------- app/view/mediaView.js | 1 - 2 files changed, 11 deletions(-) diff --git a/app/controlls/MenuList.js b/app/controlls/MenuList.js index 0635f936a..e8adeeb32 100644 --- a/app/controlls/MenuList.js +++ b/app/controlls/MenuList.js @@ -83,16 +83,6 @@ SDL.MenuList = Em.ContainerView.extend({ ); }, - /** Method setting up display mode for correspond components */ - setMode: function(mode){ - var items = this.get('content.childViews'); - - for (var i = 0; i < items.length; ++i) { - var button = items[i]; - button.setMode(mode); - } - }, - classNames: [ 'ffw_list_menu' ], diff --git a/app/view/mediaView.js b/app/view/mediaView.js index 60e2ceb69..43d5f3a51 100644 --- a/app/view/mediaView.js +++ b/app/view/mediaView.js @@ -68,7 +68,6 @@ SDL.MediaView = Em.ContainerView.create( this.optionsMenu.preferencesButton.optionsButton.setMode(SDL.SDLModel.data.imageMode); - this.sdlView.innerMenu.setMode(SDL.SDLModel.data.imageMode); this.sdlView.controlls.Controls.PrevTrackButton.setMode(SDL.SDLModel.data.imageMode); this.sdlView.controlls.Controls.PlayButton.setMode(SDL.SDLModel.data.imageMode); this.sdlView.controlls.Controls.NextTrackButton.setMode(SDL.SDLModel.data.imageMode);