fixup! webmodel element kv
This commit is contained in:
parent
f1274a7242
commit
0bc06f8de0
@ -413,7 +413,7 @@ end
|
||||
local Element = class(Node)
|
||||
M.Element = Element
|
||||
|
||||
function Element:__init__(template, ...)
|
||||
function Element:__init__(template, kv, ...)
|
||||
Node.__init__(self, ...)
|
||||
|
||||
self.default = nil
|
||||
@ -422,6 +422,10 @@ function Element:__init__(template, ...)
|
||||
|
||||
self.template = template
|
||||
|
||||
for key, value in pairs(kv) do
|
||||
self[key] = value
|
||||
end
|
||||
|
||||
self.error = false
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user