From 8a40be8345908d56a18ceffb505d5a4025d5d12b Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 2 Dec 2014 11:57:32 -0700 Subject: [PATCH] Null guard container in Pane::destroyed --- src/pane.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pane.coffee b/src/pane.coffee index defbc43fd..a97b69e71 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -534,7 +534,7 @@ class Pane extends Model @emitter.emit 'did-destroy' @emitter.dispose() item.destroy?() for item in @items.slice() - @container.didDestroyPane(pane: this) + @container?.didDestroyPane(pane: this) ### Section: Splitting