chrome/browser/resources/new_new_tab.js
// Updates the visibility of the menu items.
Updates the visibility of the menu items.
Updates the visibility of the menu items .
function updateOptionMenu() {
  var menuItems = $('option-menu').children;
  for (var i = 0; i < menuItems.length; i++) {
    var item = menuItems[i];
    var section = Section[item.getAttribute('section')];
    var show = item.getAttribute('show') == 'true';
    var hideMenuItem = show == !!(shownSections & section);
    item.style.display = hideMenuItem ? 'none' : '';
  }
}
function updateOptionMenu ( ) { var menuItems = $ ( 'option-menu' ) . children ; for ( var i = 0 ; i < menuItems . length ; i ++ ) { var item = menuItems [ i ] ; var section = Section [ item . getAttribute ( 'section' ) ] ; var show = item . getAttribute ( 'show' ) == 'true' ; var hideMenuItem = show == ! ! ( shownSections & section ) ; item . style . display = hideMenuItem ? 'none' : '' ; } }
Updates the visibility of the menu items.
Updates the visibility of the menu items .
// Hide show items if already shown. Hide hide items if already hidden.