             resultEditorRegistry.delete ed.id
             return
 
-          # reads
+          # reads:
           rect = null
           fastdom.measure ->
             rect = edView.getBoundingClientRect()
-            res.forEach (m) -> m.isInViewport(rect)
-
-
-          # writes
+            res.forEach (m) -> m.decideUpdate(rect)
+
+          # writes:
           fastdom.mutate ->
-            #if shouldUpdate
             res.forEach (m) -> m.updateWidth(rect)
-            last = []
-
-          # batching updates:
+
+          # batched updates:
           process.nextTick -> requestAnimationFrame listener
-          ), 15*1000/60
+          ), 15*1000/60 # update every 15th frame
         window.requestAnimationFrame listener
 
   initMarker: ->

      ed = @editor
      edView = atom.views.getView(@editor)
      if not resultEditorRegistry.has ed.id
        lastRect = null
        resultEditorRegistry.add ed.id
        # create new editor specific result animation method
        listener = -> setTimeout (->


  lastRect: {width: -1}

  decideUpdate: (edRect) ->
    @isVisible = false
    @left = 0
    @shouldUpdate = false
