Use telepath.Document::registerModelClasses

This commit is contained in:
Kevin Sawicki
2013-11-12 17:17:54 -08:00
parent 1808e5f991
commit ffc936ca4d
2 changed files with 2 additions and 3 deletions

View File

@@ -35,7 +35,7 @@
"season": "0.14.0",
"semver": "1.1.4",
"space-pen": "2.0.0",
"telepath": "0.31.0",
"telepath": "0.32.0",
"temp": "0.5.0",
"underscore-plus": "0.3.0"
},

View File

@@ -295,8 +295,7 @@ class Atom
doc = Document.deserialize(documentState) if documentState?
doc ?= Document.create()
doc.registerModelClass(require('./project'))
doc.registerModelClass(require('./text-buffer'))
doc.registerModelClasses(require('./project'), require('./text-buffer'))
# TODO: Remove this when everything is using telepath models
if @site?
@site.setRootDocument(doc)