Thu, 31 Dec 2009 02:39:40 +0000
util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively
util/events.lua | file | annotate | diff | comparison | revisions |
--- a/util/events.lua Wed Dec 30 20:24:11 2009 +0000 +++ b/util/events.lua Thu Dec 31 02:39:40 2009 +0000 @@ -47,13 +47,13 @@ _rebuild_index(event); end end; - local function add_plugin(plugin) - for event, handler in pairs(plugin) do + local function add_handlers(handlers) + for event, handler in pairs(handlers) do add_handler(event, handler); end end; - local function remove_plugin(plugin) - for event, handler in pairs(plugin) do + local function remove_handlers(handlers) + for event, handler in pairs(handlers) do remove_handler(event, handler); end end;