 Template.publicationAnnotations.destroyed = ->
   $(document).off '.publicationAnnotations'
 
-###
 focusAnnotation = (body) ->
   return unless body
 

          $unset:
            editing: ''

        #focusAnnotationId = @_id

        Meteor.Router.toNew Meteor.Router.annotationPath Session.get('currentPublicationId'), Session.get('currentPublicationSlug'), @_id


    @_pages = []
    @_highlighter = new Highlighter @_$displayWrapper, true

    focusAnnotationId = null

    PDFJS.getDocument(@url(), null, null, @_progressCallback).then (@_pdf) =>
      # Maybe this instance has been destroyed in meantime
