function initializeDrawerComponents() {
  const drawerComponents = document.querySelectorAll('.rev-Drawer')

  for (let i = 0; i < drawerComponents.length; i++) {
    const drawerComponent = drawerComponents[i]

    const opener = drawerComponent.querySelector('.rev-Drawer-expander')
    const closer = drawerComponent.querySelector('.rev-Drawer-closer')

    opener.addEventListener('click', (e) => {
      e.preventDefault()
      openDrawer(drawerComponent)
    })

    closer.addEventListener('click', (e) => {
      e.preventDefault()
      closeDrawer(drawerComponent)
    })
  }
}
/**
 * Initializes all drawer components on page.
 * @returns {void}
 */
Initializes all drawer components on page.
@returns {void}
Initializes all drawer components on page . @returns { void }
function initializeDrawerComponents() {
  const drawerComponents = document.querySelectorAll('.rev-Drawer')
  for (let i = 0; i < drawerComponents.length; i++) {
    const drawerComponent = drawerComponents[i]
    const opener = drawerComponent.querySelector('.rev-Drawer-expander')
    const closer = drawerComponent.querySelector('.rev-Drawer-closer')
    opener.addEventListener('click', (e) => {
      e.preventDefault()
      openDrawer(drawerComponent)
    })
    closer.addEventListener('click', (e) => {
      e.preventDefault()
      closeDrawer(drawerComponent)
    })
  }
}
function initializeDrawerComponents ( ) { const drawerComponents = document . querySelectorAll ( '.rev-Drawer' ) for ( let i = 0 ; i < drawerComponents . length ; i ++ ) { const drawerComponent = drawerComponents [ i ] const opener = drawerComponent . querySelector ( '.rev-Drawer-expander' ) const closer = drawerComponent . querySelector ( '.rev-Drawer-closer' ) opener . addEventListener ( 'click' , ( e ) => { e . preventDefault ( ) openDrawer ( drawerComponent ) } ) closer . addEventListener ( 'click' , ( e ) => { e . preventDefault ( ) closeDrawer ( drawerComponent ) } ) } }
Initializes all drawer components on page.
Initializes all drawer components on page .