mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Deprecate getEditor() at a later date…
This commit is contained in:
@@ -122,9 +122,7 @@ class EditorView extends View
|
||||
# Returns an {Editor}.
|
||||
getModel: -> @editor
|
||||
|
||||
getEditor: ->
|
||||
deprecate('Use EditorView::getModel instead')
|
||||
@editor
|
||||
getEditor: -> @editor
|
||||
|
||||
Object.defineProperty @::, 'lineHeight', get: -> @editor.getLineHeightInPixels()
|
||||
Object.defineProperty @::, 'charWidth', get: -> @editor.getDefaultCharWidth()
|
||||
|
||||
Reference in New Issue
Block a user