mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add getActivePaneItem method to Pane and PaneAxis
This commit is contained in:
@@ -69,6 +69,12 @@ class PaneAxis extends View
|
||||
getContainer: ->
|
||||
@closest('#panes').view()
|
||||
|
||||
getActivePaneItem: ->
|
||||
@getActivePane()?.activeItem
|
||||
|
||||
getActivePane: ->
|
||||
@find('.pane.active').view() ? @find('.pane:first').view()
|
||||
|
||||
insertChildBefore: (child, newChild, options={}) ->
|
||||
newChild.insertBefore(child)
|
||||
if options.updateState ? true
|
||||
|
||||
Reference in New Issue
Block a user