some minor changes to avoid long access paths into tables

This commit is contained in:
HW
2012-05-27 18:23:01 +02:00
parent a92f63bfed
commit c136773203
2 changed files with 48 additions and 36 deletions

View File

@@ -63,6 +63,13 @@ function WidgetContainer:getSize()
end
end
--[[
delete all child widgets
]]--
function WidgetContainer:clear()
while table.remove(self) do end
end
function WidgetContainer:paintTo(bb, x, y)
-- default to pass request to first child widget
if self[1] then