 
     @destroyEditSessions()
 
-    $(window).off ".editor#{@id}"
-    rootView = @rootView()
-    rootView?.off ".editor#{@id}"
     if @pane() then @pane().remove() else super
     rootView?.focus()
 


module.exports =
class Editor extends View
  @idCounter: 1

  @configDefaults:
    fontSize: 20
    showInvisibles: false

  initialize: ({editSession, @mini} = {}) ->
    requireStylesheet 'editor.css'

    @lineCache = []
    @configure()
    @bindKeys()
