mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Guard against focusing a destroyed pane
This commit is contained in:
@@ -248,7 +248,7 @@ class Pane extends Model
|
||||
# Called by the view layer to indicate that the pane has gained focus.
|
||||
focus: ->
|
||||
@focused = true
|
||||
@activate() unless @isActive()
|
||||
@activate() unless @isActive() or @isDestroyed()
|
||||
|
||||
# Called by the view layer to indicate that the pane has lost focus.
|
||||
blur: ->
|
||||
|
||||
Reference in New Issue
Block a user