api: prevent race condition in table wipe

* fix raid unitpopup menu for 3rd party addons
* fixes set banker, disenchanter options
This commit is contained in:
Road-block
2018-01-03 14:29:23 +02:00
committed by Shagu
parent e8e8ce0ee6
commit ff1e949f30
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -1131,6 +1131,9 @@ function pfUI.uf:ClickAction(button)
elseif label == "party" then
ToggleDropDownMenu(1, nil, getglobal("PartyMemberFrame" .. this.id .. "DropDown"), "cursor")
elseif label == "raid" then
-- RaidFrameDropDown_Initialize expects .name and .unit attributes on raid unit buttons
if not (this.name) then this.name = this.lastUnit end
if not (this.unit) then this.unit = unitstr end
ToggleDropDownMenu(1, nil, getglobal("RaidMemberFrame" .. this.id .. "DropDown"), "cursor")
FriendsDropDown.initialize = RaidFrameDropDown_Initialize
FriendsDropDown.displayMode = "MENU"