Allow for panes to exist without a rootView (for testing purposes)

This commit is contained in:
Nathan Sobo
2013-02-16 16:03:51 -07:00
committed by probablycorey
parent 5b58751a14
commit 68b05a5d8d

View File

@@ -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