From 418151f57ebe56b84e35169e73912fe244871db5 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sat, 1 Aug 2009 23:11:41 +0200 Subject: Make all widgets return their worker functions when called. --- org.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'org.lua') diff --git a/org.lua b/org.lua index 5632179..a4c1754 100644 --- a/org.lua +++ b/org.lua @@ -6,6 +6,7 @@ -- {{{ Grab environment local io = { open = io.open } +local setmetatable = setmetatable local string = { find = string.find } local os = { time = os.time, @@ -68,3 +69,5 @@ function worker(format, files) return {count.past, count.today, count.soon, count.future} end -- }}} + +setmetatable(_M, { __call = function(_, ...) return worker(...) end }) -- cgit v1.2.3