mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Fix access to undefined root property
The ::filterDefined transform unfortunately doesn't prevent an undefined initial value when applied to behaviors.
This commit is contained in:
@@ -14,9 +14,10 @@ class PaneContainerModel extends Model
|
||||
|
||||
constructor: ->
|
||||
super
|
||||
@subscribe @$root.filterDefined(), (root) =>
|
||||
root.parent = this
|
||||
root.focusContext = @focusContext
|
||||
@subscribe @$root, (root) =>
|
||||
if root?
|
||||
root.parent = this
|
||||
root.focusContext = @focusContext
|
||||
|
||||
deserializeParams: (params) ->
|
||||
params.root = atom.deserializers.deserialize(params.root)
|
||||
|
||||
Reference in New Issue
Block a user