mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Register deserializer for Project class
This commit is contained in:
@@ -11,6 +11,7 @@ Git = require 'git'
|
||||
|
||||
module.exports =
|
||||
class Project
|
||||
registerDeserializer(this)
|
||||
|
||||
@deserialize: (state) ->
|
||||
new Project(state.path, state.grammarOverridesByPath)
|
||||
@@ -29,6 +30,7 @@ class Project
|
||||
@buffers = []
|
||||
|
||||
serialize: ->
|
||||
deserializer: 'Project'
|
||||
path: @getPath()
|
||||
grammarOverridesByPath: @grammarOverridesByPath
|
||||
|
||||
|
||||
Reference in New Issue
Block a user