util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively

Thu, 31 Dec 2009 02:39:40 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 31 Dec 2009 02:39:40 +0000
changeset 2406
2c416334579c
parent 2405
88f73ee1c46f
child 2407
00121b728a02

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;

mercurial