changeset 120:00cf4fc1697f

addon.Locations table is used at multiple modules, definition moved to Core.lua.
author Zerotorescue
date Sat, 15 Jan 2011 17:09:08 +0100
parents dc6f405c1a5d
children ca6280dc2f5b
files Core.lua Modules/Mover.lua
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Sat Jan 15 17:03:05 2011 +0100
+++ b/Core.lua	Sat Jan 15 17:09:08 2011 +0100
@@ -18,6 +18,14 @@
 addon.supportedAddons.itemCount = {};
 addon.supportedAddons.crafting = {};
 
+addon.Locations = {
+	["Bag"] = "Bag",
+	["Bank"] = "Bank",
+	["Guild"] = "Guild",
+	["Mailbox"] = "Mailbox",
+	["Merchant"] = "Merchant",
+};
+
 function addon:OnInitialize()
 	-- SAVED VARIABLES
 	
--- a/Modules/Mover.lua	Sat Jan 15 17:03:05 2011 +0100
+++ b/Modules/Mover.lua	Sat Jan 15 17:09:08 2011 +0100
@@ -6,14 +6,6 @@
 local combinedMoves = {}; -- table storing all combined moves (with source and target) that is to be processed by the actual mover in the order of the index (1 to #)
 local movesSource;
 
-addon.Locations = {
-	["Bag"] = "Bag",
-	["Bank"] = "Bank",
-	["Guild"] = "Guild",
-	["Mailbox"] = "Mailbox",
-	["Merchant"] = "Merchant",
-};
-
 local ContainerFunctions = {
 	[addon.Locations.Bag] = {
 		GetItemId = GetContainerItemID,