From 14175d80eff417199db42ca2b8f73f69be333407 Mon Sep 17 00:00:00 2001 From: Corey Johnson & Nathan Sobo Date: Tue, 7 Jan 2014 15:46:17 -0700 Subject: [PATCH] Move Pane::activeItem to PaneModel --- src/pane-model.coffee | 2 ++ src/pane.coffee | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pane-model.coffee b/src/pane-model.coffee index fd0c1e6ce..6f5948466 100644 --- a/src/pane-model.coffee +++ b/src/pane-model.coffee @@ -2,4 +2,6 @@ module.exports = class PaneModel extends Model + activeItem: null + constructor: ({@items}) -> diff --git a/src/pane.coffee b/src/pane.coffee index 234a50048..f441b63b0 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -25,9 +25,7 @@ class Pane extends View @div class: 'pane', tabindex: -1, => @div class: 'item-views', outlet: 'itemViews' - @delegatesProperty 'items', toProperty: 'model' - - activeItem: null + @delegatesProperties 'items', 'activeItem', toProperty: 'model' # Private: initialize: (args...) ->