     @editorElement = @editor.element
     @emitter = new Emitter
     @subscriptions = new CompositeDisposable
-
-    # @modeManager = new ModeManager(this)
-    # @mark = new MarkManager(this)
-    # @register = new RegisterManager(this)
-    # @hover = new HoverManager(this)
-    # @hoverSearchCounter = new HoverManager(this)
-    # @searchHistory = new SearchHistoryManager(this)
-    # @highlightSearch = new HighlightSearchManager(this)
-    # @persistentSelection = new PersistentSelectionManager(this)
-    # @occurrenceManager = new OccurrenceManager(this)
-    # @mutationManager = new MutationManager(this)
-    # @flashManager = new FlashManager(this)
-    # @searchInput = new SearchInput(this)
-    # @operationStack = new OperationStack(this)
-    # @cursorStyleManager = new CursorStyleManager(this)
     @previousSelection = {}
     @observeSelections()
 

    @operationStack.reset() if @__operationStack?
    @mutationManager.reset() if @__mutationManager?

    # @register.reset()
    # @searchHistory.reset()
    # @hover.reset()
    # @operationStack.reset()
    # @mutationManager.reset()

  isVisible: ->
    @editor in getVisibleEditors()


  isAlive: ->
    @constructor.has(@editor)

  destroy: =>
    return unless @isAlive()
    @constructor.delete(@editor)

