Software /
code /
prosody
Diff
util/events.lua @ 6791:e813e8cf6046
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Aug 2015 13:05:22 +0200 |
parent | 6777:5de6b93d0190 |
child | 7039:138241cc1b3a |
line wrap: on
line diff
--- a/util/events.lua Mon Aug 17 01:58:53 2015 +0200 +++ b/util/events.lua Thu Aug 20 13:05:22 2015 +0200 @@ -14,9 +14,9 @@ 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 @@ }; end -return _M; +return { + new = new; +};