Upgrade to telepath 0.75.0 for custom object support

This commit is contained in:
Nathan Sobo
2013-12-16 19:03:10 -07:00
parent bd3cfda2bb
commit 3db9e16637
10 changed files with 18 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
{$, View} = require './space-pen-extensions'
telepath = require 'telepath'
{TelepathicObject} = require 'telepath'
### Internal ###
module.exports =
@@ -10,7 +10,7 @@ class PaneAxis extends View
new this(state)
initialize: (args...) ->
if args[0] instanceof telepath.Document
if args[0] instanceof TelepathicObject
@state = args[0]
@state.get('children').each (child, index) =>
@addChild(atom.deserializers.deserialize(child), index, updateState: false)