- another attempt at fixing stack overflow related to dropdown menus for secure frames

This commit is contained in:
Parnic
2010-12-28 06:42:34 +00:00
parent fc83f2a7c3
commit 34ca35cc59
3 changed files with 12 additions and 8 deletions

View File

@ -699,9 +699,11 @@ function IceTargetHealth.prototype:CreateBackground(redraw)
end
end
self.frame.button.menu = function()
IceHUD.DropdownUnit = self.unit
ToggleDropDownMenu(1, nil, IceHUD_UnitFrame_DropDown, "cursor")
if not self.frame.button.menu then
self.frame.button.menu = function(this, unit)
IceHUD.DropdownUnit = unit
ToggleDropDownMenu(1, nil, IceHUD_UnitFrame_DropDown, "cursor")
end
end
end
end