Skip to content

Commit

Permalink
remove unnecessary MenuList setMode
Browse files Browse the repository at this point in the history
  • Loading branch information
iCollin committed May 25, 2021
1 parent e60a5b6 commit 2d43636
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions app/controlls/MenuList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
Expand Down
1 change: 0 additions & 1 deletion app/view/mediaView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d43636

Please sign in to comment.