This commit is contained in:
Bunny67
2018-06-03 13:39:40 +03:00
parent 3a0f15b393
commit 1e38c5b657
11 changed files with 39 additions and 908 deletions
+3 -3
View File
@@ -273,8 +273,8 @@ local function togglemenu(self, unit)
ToggleDropDownMenu(1, nil, secureDropdown, "cursor")
end
local function onShow()
return this:UpdateAllElements("OnShow")
local function onShow(self)
return self:UpdateAllElements("OnShow")
end
local function initObject(unit, style, styleFunc, header, ...)
@@ -332,7 +332,7 @@ local function initObject(unit, style, styleFunc, header, ...)
styleFunc(object, objectUnit, not header)
--object:SetScript("OnAttributeChanged", onAttributeChanged)
object:SetScript("OnShow", onShow)
object:SetScript("OnShow", function() onShow(this) end)
activeElements[object] = {}
for element in next, elements do