Syntax change
Adrian L Lange [01-29-10 - 18:29]
Syntax change
- Thanks clad ;)
diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua
index a1176b3..b24365b 100644
--- a/oUF_P3lim.lua
+++ b/oUF_P3lim.lua
@@ -54,8 +54,10 @@ local debuffFilter = {
}
local function menu(self)
- if(_G[string.gsub(self.unit, '(.)', string.upper, 1) .. 'FrameDropDown']) then
- ToggleDropDownMenu(1, nil, _G[string.gsub(self.unit, '(.)', string.upper, 1) .. 'FrameDropDown'], 'cursor')
+ local dropdown = _G[string.gsub(self.unit, '^.', string.upper)..'FrameDropDown']
+
+ if(dropdown) then
+ ToggleDropDownMenu(1, nil, dropdown, 'cursor')
end
end