   _highlights = highlights
   highlightsDependency.changed()
 
-# If set to an annotation id, focus on next render
-focusAnnotationId = null
-
 class @Publication extends @Publication
   constructor: (args...) ->
     super args...


draggingViewport = false
currentPublication = null

# Should not be used directly but through isPublicationDOMReady and setPublicationDOMReady
_publicationDOMReady = false

focusAnnotation = (body) ->
  return unless body

  if $(body).text().length > 0
    currentPublication?._highlighter?._annotator?._deselectAllHighlights()

    range = document.createRange()
    selection = window.getSelection()
    range.setStart body, 1
