From ae8d26a8fe8d793cc4f0abc24be832ff5bda485c Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 6 Apr 2017 12:08:18 -0600 Subject: [PATCH] Remove Pane prototype properties --- src/pane.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pane.coffee b/src/pane.coffee index 41bed59ee..92e4f7c3c 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -18,10 +18,6 @@ nextInstanceId = 1 # pending items is shown in italics. module.exports = class Pane - container: undefined - activeItem: undefined - focused: false - @deserialize: (state, {deserializers, applicationDelegate, config, notifications, views}) -> {items, activeItemIndex, activeItemURI, activeItemUri} = state activeItemURI ?= activeItemUri @@ -55,6 +51,9 @@ class Pane @subscriptionsPerItem = new WeakMap @items = [] @itemStack = [] + @container = null + @activeItem ?= undefined + @focused ?= false @addItems(compact(params?.items ? [])) @setActiveItem(@items[0]) unless @getActiveItem()?