Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ylahav committed Dec 15, 2018
1 parent f08aa87 commit b799341
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/media/mod_menu/js/menu.js
Expand Up @@ -12,12 +12,6 @@ document.addEventListener('DOMContentLoaded', function() {

var setup_navigation = function(nav, settings) {
var settings = { menuHoverClass: 'show-menu', dir: 'ltr' };
// Add ARIA role to menubar and menu items
// nav.setAttribute('role', 'menubar');
// nav.querySelectorAll('li').forEach(function(el,i) {
// el.setAttribute('role', 'menuitem');
// });

var top_level_childs = nav.querySelectorAll(':scope > li');

// Set tabIndex to -1 so that top_level_childs can't receive focus until menu is open
Expand Down

0 comments on commit b799341

Please sign in to comment.