mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Delegate getActivePane to the PaneContainer in RootView
This commit is contained in:
committed by
probablycorey
parent
486baa393b
commit
4e12882478
@@ -159,7 +159,7 @@ class RootView extends View
|
||||
_.uniq(_.flatten(@getEditors().map (editor) -> editor.getOpenBufferPaths()))
|
||||
|
||||
getActivePane: ->
|
||||
@panes.find('.pane.active').view() ? @panes.find('.pane:first').view()
|
||||
@panes.getActivePane()
|
||||
|
||||
getActiveEditor: ->
|
||||
if (editor = @panes.find('.editor.active')).length
|
||||
|
||||
Reference in New Issue
Block a user