mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Call deserialize on deserializers ivar
This commit is contained in:
parent
2eeb399cf1
commit
a1f3540cb4
@ -61,7 +61,7 @@ class Atom
|
|||||||
@contextMenu = new ContextMenuManager(devMode)
|
@contextMenu = new ContextMenuManager(devMode)
|
||||||
@menu = new MenuManager({resourcePath})
|
@menu = new MenuManager({resourcePath})
|
||||||
@pasteboard = new Pasteboard()
|
@pasteboard = new Pasteboard()
|
||||||
@syntax = deserialize(@getWindowState('syntax')) ? new Syntax()
|
@syntax = @deserializers.deserialize(@getWindowState('syntax')) ? new Syntax()
|
||||||
|
|
||||||
# Private:
|
# Private:
|
||||||
setBodyPlatformClass: ->
|
setBodyPlatformClass: ->
|
||||||
@ -127,7 +127,7 @@ class Atom
|
|||||||
deserializeRootView: ->
|
deserializeRootView: ->
|
||||||
RootView = require './root-view'
|
RootView = require './root-view'
|
||||||
state = @getWindowState()
|
state = @getWindowState()
|
||||||
@rootView = deserialize(state.get('rootView'))
|
@rootView = @deserializers.deserialize(state.get('rootView'))
|
||||||
unless @rootView?
|
unless @rootView?
|
||||||
@rootView = new RootView()
|
@rootView = new RootView()
|
||||||
state.set('rootView', @rootView.getState())
|
state.set('rootView', @rootView.getState())
|
||||||
|
Loading…
Reference in New Issue
Block a user