     activeView = atom.workspaceView.getActiveView()
     if activeView?.hasClass('editor') then activeView else null
 
-  markersUpdated: (markers) ->
+  markersUpdated: =>
     editor = @getEditor()
+    markers = @findModel.markers
 
     if not editor?
       @destroyAllViews()


  initialize: (@findModel) ->
    @markerViews = {}
    @subscribe @findModel, 'updated', (args...) => @markersUpdated(args...)

  attach: ->
    @getEditor()?.underlayer.append(this)

  detach: ->
    super

_ = require 'underscore-plus'
{EditorView, View} = require 'atom'
MarkerView = require './marker-view'

# TODO: remove this when marker views are in core. Hopefully soon.

module.exports =
class FindResultsView extends View
