     $(document).on 'click', '.js-nav-switch', @switchMode
     $(window).on 'throttled-scroll throttled-resize', @repositionPopup
     $(document).on 'transitionend', '.js-nav-popup--container', @reset
+    $(document).on 'turblinks:load', @syncAll
 
     @popup = document.getElementsByClassName('js-nav-popup--popup')
     @popupContainer = document.getElementsByClassName('js-nav-popup--container')


    Timeout.clear @hideTimeout
    @hideTimeout = Timeout.set 10, =>
      @data().visible = ''
      @showAllMenu false
      $.publish 'nav:popup:hidden'


      modeHash = null if @currentMode() == modeHash.navMode

    @setMode modeHash


  syncAll: =>
    @syncMenu()
    @syncMode()


  syncMenu: =>
    for menu in @menus
      if @data().visible
        menu.classList.add 'js-nav-switch--visible'
      else
        menu.classList.remove 'js-nav-switch--visible'


  syncMode: =>
