Changeset

2406:2c416334579c

util.events: Rename add_plugin() and remove_plugin() to add_handlers() and remove_handlers() respectively
author Matthew Wild <mwild1@gmail.com>
date Thu, 31 Dec 2009 02:39:40 +0000
parents 2405:88f73ee1c46f
children 2407:00121b728a02
files util/events.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;