Software /
code /
prosody
Diff
util/events.lua @ 6777:5de6b93d0190
util.*: Remove use of module() function, make all module functions local and return them in a table at the end
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Feb 2015 10:36:37 +0100 |
parent | 6665:e923d7cb8430 |
child | 7039:138241cc1b3a |
line wrap: on
line diff
--- a/util/events.lua Mon Aug 10 22:16:05 2015 +0200 +++ b/util/events.lua Sat Feb 21 10:36:37 2015 +0100 @@ -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; +};