refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-06 07:43:37 +02:00
parent 00a242e0e2
commit d686b6af59
12 changed files with 71 additions and 74 deletions
+1 -1
View File
@@ -914,7 +914,7 @@ local methods = {
end
end,
SetSort = function(self, ...) temp=arg
SetSort = function(self, ...) auto[arg] = true
for k=1,arg.n do
for i, sort in self.sorts do
if sort.index == abs(arg[k]) then
+1 -1
View File
@@ -13,7 +13,7 @@ function LOAD()
aux_background:SetTexture(color.content.background())
aux_background:SetAllPoints(DropDownList1Backdrop)
blizzard_backdrop = DropDownList1Backdrop:GetBackdrop()
hook('ToggleDropDownMenu', function(...) temp=arg
hook('ToggleDropDownMenu', function(...) auto[arg] = true
local ret = temp-A0(orig.ToggleDropDownMenu(unpack(arg)))
local dropdown = _G[arg[4] or ''] or this:GetParent()
if strfind(dropdown:GetName() or '', '^aux_frame%d+$') then