fixup! webmodel element kv

This commit is contained in:
Maciej Krüger 2022-05-28 09:06:34 +02:00 committed by Alexander List
parent f1274a7242
commit 0bc06f8de0

View File

@ -413,7 +413,7 @@ end
local Element = class(Node) local Element = class(Node)
M.Element = Element M.Element = Element
function Element:__init__(template, ...) function Element:__init__(template, kv, ...)
Node.__init__(self, ...) Node.__init__(self, ...)
self.default = nil self.default = nil
@ -422,6 +422,10 @@ function Element:__init__(template, ...)
self.template = template self.template = template
for key, value in pairs(kv) do
self[key] = value
end
self.error = false self.error = false
end end