diff options
author | Kim Alvefur <zash@zash.se> | 2015-08-20 13:05:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-08-20 13:05:22 +0200 |
commit | 6ef7c4d80892f486d71e660b054bdfdb993c8528 (patch) | |
tree | 103fd7d9396b60b9f76071a009c54d3ca9d35744 /util/events.lua | |
parent | a9029bd099734436154fc4e794d3b958e54d1943 (diff) | |
parent | d32f36b2817739d7f8d5f1208a3009b7be379562 (diff) | |
download | prosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.tar.gz prosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/events.lua')
-rw-r--r-- | util/events.lua | 8 |
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; +}; |