Quantcast

Removed duplicate WeightsWatcher declarations

Kevin Lyles [06-27-10 - 01:03]
Removed duplicate WeightsWatcher declarations
Filename
GemIds.lua
Regexps.lua
WeightsWatcher.lua
config.lua
weights.lua
diff --git a/GemIds.lua b/GemIds.lua
index 3a7c8a9..2a48d56 100644
--- a/GemIds.lua
+++ b/GemIds.lua
@@ -1,6 +1,4 @@
-if not WeightsWatcher then
-	WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")
-end
+WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")

 -- format:
 -- 	[source] = {
diff --git a/Regexps.lua b/Regexps.lua
index 80b7c7e..8f561b2 100644
--- a/Regexps.lua
+++ b/Regexps.lua
@@ -1,7 +1,3 @@
-if not WeightsWatcher then
-	WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")
-end
-
 local patternCategories = {
 	"elixir",
 	"enchant",
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 242869a..4059196 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -1,7 +1,3 @@
-if not WeightsWatcher then
-	WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")
-end
-
 currentHooks = {}

 ww_normalStatsMetatable = {
diff --git a/config.lua b/config.lua
index a949a4e..57609ff 100644
--- a/config.lua
+++ b/config.lua
@@ -1,7 +1,3 @@
-if not WeightsWatcher then
-	WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")
-end
-
 function commandHandler(msg)
 	if msg == "config" then
 		ww_weights:Hide()
diff --git a/weights.lua b/weights.lua
index a7ceb1d..cbd2462 100644
--- a/weights.lua
+++ b/weights.lua
@@ -1,7 +1,3 @@
-if not WeightsWatcher then
-	WeightsWatcher = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.1")
-end
-
 StaticPopupDialogs["WW_CONFIRM_DISCARD_CHANGES"] = {
 	text = "You have unsaved changes for this weight.",
 	button1 = "Discard",