code: function attachEvt( elems, evt ){
      for( var i = 0, len = elems.length; i < len; i++ ){
        mainButton = elems[i].querySelector('.' + mainButtonClass);
        mainButton.addEventListener( evt , toggleButton, false);
      }
    }
docs: For every menu we need to get the main button and attach the appropriate evt.