       LinkHints.hintMarkers = []
       handlerStack.pop()
       HUD.hide()
+      @isActive = false
 
     # we invoke the deactivate() function directly instead of using setTimeout(callback, 0) so that
     # deactivateMode can be tested synchronously

  activateModeWithQueue: -> @activateMode(true, true, false)

  activateMode: (openInNewTab, withQueue, copyLinkUrl) ->
    if (!document.getElementById("vimiumLinkHintCss"))
      # linkHintCss is declared by vimiumFrontend.js and contains the user supplied css overrides.
      addCssToPage(linkHintCss, "vimiumLinkHintCss")

  # Handle the link hinting marker generation and matching. Must be initialized after settings have been
  # loaded, so that we can retrieve the option setting.
  markerMatcher: undefined
  # lock to ensure only one instance runs at a time
  isActive: false

  #
  # To be called after linkHints has been generated from linkHintsBase.
