 publicationCacheHandle = null
 
 # If set to an annotation id, focus on next render
-focusAnnotationId = null
+#focusAnnotationId = null
 
 # We use our own reactive variable for publicationDOMReady and not Session to
 # make sure it is not preserved when site autoreloads (because of a code change).

    Notify.debug "Destroying publication #{ @_id }"

    currentPublication = null
    focusAnnotationId = null

    pages = @_pages or []
    @_pages = null # To remove references to pdf.js elements to allow cleanup, and as soon as possible as this disables other callbacks

Template.publicationAnnotations.destroyed = ->
  $(document).off '.publicationAnnotations'

###
focusAnnotation = (body) ->
  return unless body

