Moved recipe_registry to just before the definition of ListFrame:Initialize()
James D. Callahan III [03-30-10 - 13:30]
Moved recipe_registry to just before the definition of ListFrame:Initialize()
diff --git a/Frame.lua b/Frame.lua
index 705eaba..fe5db30 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -2720,10 +2720,6 @@ do
return is_good
end
- -- Used for Location and Acquisition sort - since many recipes have multiple locations/acquire types it is
- -- necessary to ensure each is counted only once.
- local recipe_registry = {}
-
function ListFrame:InsertEntry(entry, parent_entry, entry_index, entry_type, entry_expanded, expand_mode)
local insert_index = entry_index
@@ -2758,6 +2754,10 @@ do
return insert_index
end
+ -- Used for Location and Acquisition sort - since many recipes have multiple locations/acquire types it is
+ -- necessary to ensure each is counted only once.
+ local recipe_registry = {}
+
function ListFrame:Initialize(expand_mode)
local recipe_list = private.recipe_list
local sorted_recipes = addon.sorted_recipes