Null guard container in Pane::makeActive

Panes can exist outside of containers, albeit only briefly. If
::makeActive is called when the pane is in this state, consider it a
no-op.
This commit is contained in:
Nathan Sobo
2014-01-10 11:37:42 -07:00
parent edfc86f153
commit 732d36af28

View File

@@ -62,7 +62,7 @@ class PaneModel extends Model
isActive: -> @active
makeActive: -> @container.activePane = this
makeActive: -> @container?.activePane = this
getPanes: -> [this]