Add getActivePaneItem method to Pane and PaneAxis

This commit is contained in:
Corey Johnson
2013-08-29 15:33:48 -07:00
parent e3a236afbd
commit 44de8fe2d3
2 changed files with 9 additions and 0 deletions

View File

@@ -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)