mirror of
https://github.com/atom/atom.git
synced 2026-02-12 23:55:10 -05:00
a TreeView without a root path can be serialized
This commit is contained in:
@@ -60,7 +60,7 @@ class TreeView extends View
|
||||
@focus() if @focusAfterAttach
|
||||
|
||||
serialize: ->
|
||||
directoryExpansionStates: @root.serializeEntryExpansionStates()
|
||||
directoryExpansionStates: @root?.serializeEntryExpansionStates()
|
||||
selectedPath: @selectedEntry()?.getPath()
|
||||
hasFocus: @is(':focus')
|
||||
attached: @hasParent()
|
||||
|
||||
Reference in New Issue
Block a user