provide the parent to class.new
This commit is contained in:
parent
1d817779df
commit
38f0c6154c
@ -153,7 +153,7 @@
|
|||||||
|
|
||||||
-- otherwise, a new instance
|
-- otherwise, a new instance
|
||||||
if not instance then
|
if not instance then
|
||||||
instance = class.new(name)
|
instance = class.new(name, parent)
|
||||||
if parent then
|
if parent then
|
||||||
p.container.addChild(parent, instance)
|
p.container.addChild(parent, instance)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user