aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 2d28980..c154e20 100644
--- a/init.lua
+++ b/init.lua
@@ -152,12 +152,11 @@ function vicious.register(widget, wtype, format, timer, warg)
timer = timer,
warg = warg,
widget = widget,
-
- -- Update function
- update = function ()
- update(widget, reg)
- end,
}
+ -- Set functions
+ reg.update = function ()
+ update(widget, reg)
+ end
-- Default to 2s timer
if reg.timer == nil then