mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Null guard container in Pane::makeActive
Panes can exist outside of containers, albeit only briefly. If ::makeActive is called when the pane is in this state, consider it a no-op.
This commit is contained in:
@@ -62,7 +62,7 @@ class PaneModel extends Model
|
||||
|
||||
isActive: -> @active
|
||||
|
||||
makeActive: -> @container.activePane = this
|
||||
makeActive: -> @container?.activePane = this
|
||||
|
||||
getPanes: -> [this]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user