fix: format
This commit is contained in:
parent
f4088ca4e1
commit
e7db5e3049
|
@ -38,15 +38,16 @@ end
|
||||||
-- All arguments are passed to the queued `update_callback` call.
|
-- All arguments are passed to the queued `update_callback` call.
|
||||||
function template:update(args)
|
function template:update(args)
|
||||||
if type(args) == "table" then
|
if type(args) == "table" then
|
||||||
self._private.update_args = gtable.crush(gtable.clone(self._private.update_args or {}, false), args)
|
self._private.update_args = gtable.crush(
|
||||||
|
gtable.clone(self._private.update_args or {}, false),
|
||||||
|
args
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not template.queued_updates[self] then
|
if not template.queued_updates[self] then
|
||||||
gtimer.delayed_call(
|
gtimer.delayed_call(function()
|
||||||
function()
|
|
||||||
self:_do_update_now()
|
self:_do_update_now()
|
||||||
end
|
end)
|
||||||
)
|
|
||||||
template.queued_updates[self] = true
|
template.queued_updates[self] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue