Use atom.deserializers directly

This commit is contained in:
Kevin Sawicki
2013-11-20 14:07:55 -08:00
parent 5c1fa8e53d
commit d9c2f07fbe
2 changed files with 2 additions and 2 deletions

View File

@@ -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')

View File

@@ -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