provide the parent to class.new
This commit is contained in:
parent
1d817779df
commit
38f0c6154c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user