function suspend() {
      if ( !_suspended ) {
        var level2 = _menus.getAllAtLevel( 1 );
        var menu;
        var transition;
        for ( var i = 0, len = level2.length; i < len; i++ ) {
          menu = level2[i].data;
          transition = menu.getTransition();
          transition.remove();
          menu.getDom().content.classList.remove( 'u-invisible' );

          if ( menu.isExpanded() ) {
            menu.collapse();
          }
        }

        // TODO: Combine this loop with the above
        //       into a Breadth-First Search iteration.
        var level3 = _menus.getAllAtLevel( 2 );
        for ( var i2 = 0, len2 = level3.length; i2 < len2; i2++ ) {
          level3[i2].data.resume();
        }

        _suspended = true;
      }

      return _suspended;
    }
/**
     * Remove events necessary for the desktop menu behaviors.
     * @returns {boolean} Whether it has successfully been suspended or not.
     */
Remove events necessary for the desktop menu behaviors.
@returns {boolean} Whether it has successfully been suspended or not.
Remove events necessary for the desktop menu behaviors . @returns { boolean } Whether it has successfully been suspended or not .
function suspend() {
      if ( !_suspended ) {
        var level2 = _menus.getAllAtLevel( 1 );
        var menu;
        var transition;
        for ( var i = 0, len = level2.length; i < len; i++ ) {
          menu = level2[i].data;
          transition = menu.getTransition();
          transition.remove();
          menu.getDom().content.classList.remove( 'u-invisible' );
          if ( menu.isExpanded() ) {
            menu.collapse();
          }
        }
        var level3 = _menus.getAllAtLevel( 2 );
        for ( var i2 = 0, len2 = level3.length; i2 < len2; i2++ ) {
          level3[i2].data.resume();
        }
        _suspended = true;
      }
      return _suspended;
    }
function suspend ( ) { if ( ! _suspended ) { var level2 = _menus . getAllAtLevel ( 1 ) ; var menu ; var transition ; for ( var i = 0 , len = level2 . length ; i < len ; i ++ ) { menu = level2 [ i ] . data ; transition = menu . getTransition ( ) ; transition . remove ( ) ; menu . getDom ( ) . content . classList . remove ( 'u-invisible' ) ; if ( menu . isExpanded ( ) ) { menu . collapse ( ) ; } } var level3 = _menus . getAllAtLevel ( 2 ) ; for ( var i2 = 0 , len2 = level3 . length ; i2 < len2 ; i2 ++ ) { level3 [ i2 ] . data . resume ( ) ; } _suspended = true ; } return _suspended ; }
Remove events necessary for the desktop menu behaviors.
Remove events necessary for the desktop menu behaviors .
// TODO: Combine this loop with the above //       into a Breadth-First Search iteration.