mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Add TextEditorElement and make TextEditorView a wrapper around it
This is the next step on converting all internal views to custom elements instead of using SpacePen. The TextEditorElement instances are associated with ::__spacePenView fields that are used for supporting legacy access paths via atom.workspaceView.
This commit is contained in:
@@ -162,9 +162,6 @@ class TextEditor extends Model
|
||||
@subscribe @displayBuffer.onDidAddDecoration (decoration) => @emit 'decoration-added', decoration
|
||||
@subscribe @displayBuffer.onDidRemoveDecoration (decoration) => @emit 'decoration-removed', decoration
|
||||
|
||||
getViewClass: ->
|
||||
require './text-editor-view'
|
||||
|
||||
destroyed: ->
|
||||
@unsubscribe()
|
||||
selection.destroy() for selection in @getSelections()
|
||||
|
||||
Reference in New Issue
Block a user