Register deserializer for Project class

This commit is contained in:
Kevin Sawicki 2013-02-19 21:53:48 -08:00
parent 3532631002
commit 6047590544

View File

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