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,7 +1,7 @@
{dirname} = require 'path'
{$, View} = require './space-pen-extensions'
_ = require 'underscore-plus'
telepath = require 'telepath'
{TelepathicObject} = require 'telepath'
PaneRow = require './pane-row'
PaneColumn = require './pane-column'
@@ -32,7 +32,7 @@ class Pane extends View
# Private:
initialize: (args...) ->
@items = []
if args[0] instanceof telepath.Document
if args[0] instanceof TelepathicObject
@state = args[0]
@items = _.compact @state.get('items').map (item) ->
item = atom.deserializers.deserialize(item)