fixup! webmodel element kv
This commit is contained in:
parent
f1274a7242
commit
0bc06f8de0
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user