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