Remove Pane prototype properties

This commit is contained in:
Nathan Sobo
2017-04-06 12:08:18 -06:00
parent 5cb550b09d
commit ae8d26a8fe

View File

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