diff --git a/src/pane.coffee b/src/pane.coffee index 660da2c02..229bc9015 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -502,6 +502,8 @@ class Pane extends Model # Public: Makes this pane the *active* pane, causing it to gain focus. activate: -> + throw new Error("Pane has been destroyed") if @isDestroyed() + @container?.setActivePane(this) @emit 'activated' @emitter.emit 'did-activate'