misc cleanup

This commit is contained in:
airstruck
2015-10-28 00:06:47 -04:00
parent f19ef288ca
commit 18f51c2ac3
6 changed files with 38 additions and 52 deletions

View File

@@ -76,7 +76,7 @@ end
function Widget:addChild (data)
local layout = self.layout
local child = Widget(layout, data)
local child = Widget(layout, data or {})
table.insert(self.children, child)
child.parent = self