From 68b05a5d8df3f79654d3533a455332624fa2c4f7 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 16 Feb 2013 16:03:51 -0700 Subject: [PATCH] Allow for panes to exist without a rootView (for testing purposes) --- src/app/pane.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pane.coffee b/src/app/pane.coffee index b44e317a5..df096af7b 100644 --- a/src/app/pane.coffee +++ b/src/app/pane.coffee @@ -42,7 +42,7 @@ class Pane extends View pane = new Pane(view) this[side](pane) - rootView.adjustPaneDimensions() + rootView?.adjustPaneDimensions() view.focus?() pane @@ -54,7 +54,7 @@ class Pane extends View if parentAxis.children().length == 1 sibling = parentAxis.children().detach() parentAxis.replaceWith(sibling) - rootView.adjustPaneDimensions() + rootView?.adjustPaneDimensions() buildPaneAxis: (axis) -> switch axis