From af1f57048b0fba52ef0776a81e68ccd12fd3c166 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 11 Feb 2014 08:55:45 -0800 Subject: [PATCH] Add Pane::getActiveItem --- src/pane.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pane.coffee b/src/pane.coffee index a3d2be56c..652b05f5f 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -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]