provide the parent to class.new

This commit is contained in:
Tom van Dijck 2016-06-07 13:32:40 -07:00
parent 1d817779df
commit 38f0c6154c

View File

@ -153,7 +153,7 @@
-- otherwise, a new instance
if not instance then
instance = class.new(name)
instance = class.new(name, parent)
if parent then
p.container.addChild(parent, instance)
end