code: function terminate() {
      window.onhashchange = null
      window.onpopstate = null
      options = util.copyObject(defaultOptions)
      logger.enabled = false
      logger.log = logger.error = util.noop
    }
docs: /*
  Remove any possibility of side effect this router instance might cause.
  Used for testing purposes where we keep reusing the same router instance.