Use next instead of pairs
Adrian L Lange [07-22-14 - 05:51]
Use next instead of pairs
diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua
index e35ad0a..9832d5f 100644
--- a/oUF_Reputation.lua
+++ b/oUF_Reputation.lua
@@ -13,7 +13,7 @@ local function GetReputation()
end
end
-for tag, func in pairs({
+for tag, func in next, {
['currep'] = function()
local min = GetReputation()
return min
@@ -33,7 +33,7 @@ for tag, func in pairs({
['reputation'] = function()
return GetWatchedFactionInfo()
end,
-}) do
+} do
oUF.Tags.Methods[tag] = func
oUF.Tags.Events[tag] = 'UPDATE_FACTION'
end