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