mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Remove RootView.getActiveEditor / getActiveEditSession
There's a bunch broken because of this… to be continued.
This commit is contained in:
committed by
probablycorey
parent
2bf5163798
commit
6304bac233
@@ -49,7 +49,6 @@ class RootView extends View
|
||||
fontSize = config.get "editor.fontSize"
|
||||
config.set("editor.fontSize", fontSize - 1) if fontSize > 1
|
||||
|
||||
|
||||
@command 'window:focus-next-pane', => @focusNextPane()
|
||||
@command 'window:save-all', => @saveAll()
|
||||
@command 'window:toggle-invisibles', =>
|
||||
@@ -150,16 +149,9 @@ class RootView extends View
|
||||
getActivePane: ->
|
||||
@panes.getActivePane()
|
||||
|
||||
getActiveEditor: ->
|
||||
if (editor = @panes.find('.editor.active')).length
|
||||
editor.view()
|
||||
else
|
||||
@panes.find('.editor:first').view()
|
||||
getActivePaneItem: ->
|
||||
@panes.getActivePaneItem()
|
||||
|
||||
getActiveEditSession: ->
|
||||
@getActiveEditor()?.activeEditSession
|
||||
getActiveView: ->
|
||||
@panes.getActiveView()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user