 
     offset = $textLayer.offset()
     if highlightStartPosition.left is e.pageX - offset.left and highlightStartPosition.top is e.pageY - offset.top
-      closeHighlight publication, page, $textLayer, highlightStartIndex, highlightEndIndex
+      closeHighlight publication, page, $textLayer
     else
       openHihglight publication, page, $textLayer, highlightStartIndex, highlightEndIndex
 

    start: start
    end: end

closeHighlight = (publication, page, $textLayer, start, end) ->
  hideHiglight $textLayer

  Session.set 'currentHighlight', null


            page.render(renderContext).then ->
              $textLayer.children().each ->
                $(@).data
                  position: getElementPosition @

Deps.autorun ->
  publication = Publications.findOne Session.get 'currentPublicationId'
