- 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

@ -1037,8 +1037,8 @@ do -- OVERRIDE: IceTargetInfo.prototype:CreateFrame(redraw)
self.frame:SetAttribute("unit", self.unit)
if not self.frame.menu then
self.frame.menu = function()
IceHUD.DropdownUnit = self.unit
self.frame.menu = function(this, unit)
IceHUD.DropdownUnit = unit
ToggleDropDownMenu(1, nil, IceHUD_UnitFrame_DropDown, "cursor")
end
end