mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use atom.deserializers directly
This commit is contained in:
@@ -23,7 +23,7 @@ class PaneContainer extends View
|
||||
|
||||
if state instanceof telepath.Document
|
||||
@state = state
|
||||
@setRoot(deserialize(@state.get('root')))
|
||||
@setRoot(atom.deserializers.deserialize(@state.get('root')))
|
||||
else
|
||||
@state = atom.site.createDocument(deserializer: 'PaneContainer')
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ class RootView extends View
|
||||
|
||||
if state instanceof telepath.Document
|
||||
@state = state
|
||||
panes = deserialize(state.get('panes'))
|
||||
panes = atom.deserializers.deserialize(state.get('panes'))
|
||||
else
|
||||
panes = new PaneContainer
|
||||
@state = atom.site.createDocument
|
||||
|
||||
Reference in New Issue
Block a user