From 20fd6ab608d4c31749649654e52e2eb49015aebd Mon Sep 17 00:00:00 2001 From: Vladimir Markelov Date: Tue, 20 Oct 2015 16:00:35 -0700 Subject: [PATCH] closes #21 - add panic to AddChild --- control_base.go | 1 + 1 file changed, 1 insertion(+) diff --git a/control_base.go b/control_base.go index 9cf7f7d..7e12f93 100644 --- a/control_base.go +++ b/control_base.go @@ -110,6 +110,7 @@ func (c *ControlBase) SetPack(pk PackType) { } func (c *ControlBase) AddChild(ctrl Control, scale int) { + panic("This control cannot have children") } func (c *ControlBase) Children() []Control {