Re-used each class' OnClick handler instead of calling toggleCollapse directly
Kevin Lyles [10-26-09 - 20:49]
Re-used each class' OnClick handler instead of calling toggleCollapse directly
diff --git a/config.lua b/config.lua
index a0ca38b..4e58b53 100644
--- a/config.lua
+++ b/config.lua
@@ -279,10 +279,7 @@ function loadClassButtons()
for _, classFrame in ipairs(ww_classFrameTable) do
classFrame.class = revClassLookup[classFrame.text:GetText()]
if classFrame.class ~= class then
- toggleCollapse(classFrame, ww_classFrameTable, ww_weightFrameTable, 20,
- function()
- ww_config.leftPanel.scrollFrame:GetScript("OnShow")(ww_config.leftPanel.scrollFrame)
- end)
+ classFrame.text:Click()
end
end
end