aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/events.lua')
-rw-r--r--util/events.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/events.lua b/util/events.lua
index d19da98b..825ffb19 100644
--- a/util/events.lua
+++ b/util/events.lua
@@ -14,9 +14,9 @@ local t_sort = table.sort;
local setmetatable = setmetatable;
local next = next;
-module "events"
+local _ENV = nil;
-function new()
+local function new()
local handlers = {};
local global_wrappers;
local wrappers = {};
@@ -151,4 +151,6 @@ function new()
};
end
-return _M;
+return {
+ new = new;
+};