mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Upgrade to telepath 0.75.0 for custom object support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user