# HG changeset patch # User Matthew Wild # Date 1373886951 -3600 # Node ID 60b3b6d2736465cb613037f5e394f360e9d74965 # Parent cef2a1122b431c64bc3f41ff8261b0c50cb3e373 util.events: Remove varargs, event handlers can now only accept a single parameter diff -r cef2a1122b43 -r 60b3b6d27364 util/events.lua --- a/util/events.lua Mon Jul 15 11:44:49 2013 +0100 +++ b/util/events.lua Mon Jul 15 12:15:51 2013 +0100 @@ -60,11 +60,11 @@ remove_handler(event, handler); end end; - local function fire_event(event, ...) - local h = handlers[event]; + local function fire_event(event_name, event_data) + local h = handlers[event_name]; if h then for i=1,#h do - local ret = h[i](...); + local ret = h[i](event_data); if ret ~= nil then return ret; end end end