fix: format

This commit is contained in:
Aire-One 2021-10-23 16:05:49 +02:00 committed by Emmanuel Lepage Vallee
parent f4088ca4e1
commit e7db5e3049
1 changed files with 7 additions and 6 deletions

View File

@ -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