dEventListener("click", function(e) {
    if ($navbar.className.indexOf("in") > 0) {
      __HuxNav__.close()
    } else {
      __HuxNav__.open()
    }
  })

  /**
    * Since Fastclick is used to delegate "touchstart" globally
    * to hack 300ms delay in iOS by performing a fake "click",
    * Using "e.stopPropagation" to stop "touchstart" event from
    * $toggle/$collapse will break global delegation.
    *
    * Instead, we use a "e.target" filter to prevent handler
    * added to document close HuxNa