   clearJumpMode: ->
       @clearKeys()
       $('#status-bar-jumpy').html("")
+      atom.workspaceView.find('.jumpy').remove()
       atom.workspaceView.eachEditorView (e) -> e.removeClass 'jumpy-specificity-1 jumpy-specificity-2 jumpy-jump-mode'
-      atom.workspaceView.find('.jumpy').remove()
       @detach()
 
   jump: ->

module.exports =
class JumpyView extends View
  @content: ->
    @div '', class: 'jumpy label'

  initialize: (serializeState) ->
    @pixels = @getAllPixelLocations()

      nearestCursor =
          left: nearestMultiple(labelLocation.left, cursor.clientWidth)
          top: nearestMultiple(labelLocation.bottom - labelLocation.height, cursor.clientHeight)
      console.log nearestCursor.left, nearestCursor.top, cursor.clientHeight, labelLocation, labelElement

      lines = atom.workspaceView.find('.lines')
      offsetTop = lines.get(0).offsetTop
      console.log offsetTop
      #offsetLeft = lines.get(0).offsetLeft
      offsetLeft = 0 # TODO: this needs to be replaced with scroll to the right info.
      scrollViewOffset = $('.editor .scroll-view').offset()
      for line, lineIndex in @pixels
          line = _.compact line
          for char, charIndex in line
              #console.log lineIndex, charIndex, char
              isAtLeft = (nearestCursor.left ==
                  char.left + scrollViewOffset.left - offsetLeft)
              isAtTop = (nearestCursor.top ==
                  char.top + scrollViewOffset.top - offsetTop)
                  #char.top + scrollViewOffset.top - 42 - offsetTop)

              if lineIndex == @pixels.length - 2 && charIndex == 0
                  # TODO: handle changing y coord after 2nd run...found class="cc aa"!
                  # TODO: missing offset
                  console.log "Last one:", lineIndex, charIndex, char.left, char.top, isAtLeft, isAtTop

              if isAtLeft && isAtTop
                  return [lineIndex, charIndex]

