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:
@@ -142,6 +142,9 @@ class Pane extends View
|
||||
else
|
||||
@showItemAtIndex(@items.length - 1)
|
||||
|
||||
getActivePaneItem: ->
|
||||
@activeItem
|
||||
|
||||
# Public: Returns the index of the currently active item.
|
||||
getActiveItemIndex: ->
|
||||
@items.indexOf(@activeItem)
|
||||
|
||||
Reference in New Issue
Block a user