mirror of
https://github.com/atom/atom.git
synced 2026-02-17 01:51:54 -05:00
Ensure pane is added to container before invoking onDidAddPane listeners
Fixes #12654
This commit is contained in:
@@ -75,12 +75,10 @@ class PaneAxis extends Model
|
||||
@onDidChangeFlexScale(fn)
|
||||
|
||||
addChild: (child, index=@children.length) ->
|
||||
@children.splice(index, 0, child)
|
||||
child.setParent(this)
|
||||
child.setContainer(@container)
|
||||
|
||||
@subscribeToChild(child)
|
||||
|
||||
@children.splice(index, 0, child)
|
||||
@emitter.emit 'did-add-child', {child, index}
|
||||
|
||||
adjustFlexScale: ->
|
||||
|
||||
Reference in New Issue
Block a user