From 33fde29acb77fe7aadf53b6f65b3e708235af251 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 7 Nov 2014 15:45:21 -0700 Subject: [PATCH] Disallow activation of destroyed panes Signed-off-by: Max Brunsfeld --- src/pane.coffee | 2 ++ 1 file changed, 2 insertions(+) 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'