       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")

  # executes after 'delay' and invokes 'callback' when it is finished.
  #
  deactivateMode: (delay, callback) ->
    deactivate = =>
      if (LinkHints.markerMatcher.deactivate)
        LinkHints.markerMatcher.deactivate()
      if (LinkHints.hintMarkerContainingDiv)
