Fix mouseover bindings when used with Clique
James Whitehead II [10-17-10 - 13:58]
Fix mouseover bindings when used with Clique
diff --git a/PerfectRaid_Highlight.lua b/PerfectRaid_Highlight.lua
index 1f126fc..6f211f0 100644
--- a/PerfectRaid_Highlight.lua
+++ b/PerfectRaid_Highlight.lua
@@ -81,8 +81,11 @@ function Highlight:UpdateButtonLayout(button, options)
button:SetBackdrop(backdrop)
button:SetBackdropColor(0,0,0,0)
- button:SetScript("OnEnter", OnEnter)
- button:SetScript("OnLeave", OnLeave)
+ if not button.highlight_scripts_set then
+ button:HookScript("OnEnter", OnEnter)
+ button:HookScript("OnLeave", OnLeave)
+ button.highlight_scripts_set = true
+ end
end
-- Handle the buff events as they come across, and keep track of who has what buffs.