Fx bad call to panelID without self reference in constructor
Scott Yeskie [05-23-14 - 19:29]
Fx bad call to panelID without self reference in constructor
diff --git a/lib/LibAddonMenu-1.0.lua b/lib/LibAddonMenu-1.0.lua
index 0eb4f82..a63750a 100644
--- a/lib/LibAddonMenu-1.0.lua
+++ b/lib/LibAddonMenu-1.0.lua
@@ -49,8 +49,8 @@ function lamPanel.new(controlPanelID, controlPanelName)
--disables Defaults button because we don't need it, but keybind still works :/ ...
self.panelID = _G[controlPanelID]
- lam.panels[panelID] = self
- return self
+ lam.panels[self.panelID] = self
+ return lam.panels[self.panelID]
end
function lamPanel:AddHeader(text)