mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Add Pane::getActiveItem
This commit is contained in:
@@ -85,6 +85,12 @@ class Pane extends Model
|
||||
getItems: ->
|
||||
@items.slice()
|
||||
|
||||
# Public: Get the active pane item in this pane.
|
||||
#
|
||||
# Returns a pane item.
|
||||
getActiveItem: ->
|
||||
@activeItem
|
||||
|
||||
# Public: Returns the item at the specified index.
|
||||
itemAtIndex: (index) ->
|
||||
@items[index]
|
||||
|
||||
Reference in New Issue
Block a user