From f354bc68bdfa5be1451a81748545e04422f93d20 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 29 Jan 2010 20:49:22 +0100 Subject: [PATCH] Use a secure function to handle the menu --- oUF_P3lim.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 2b36975..c7e1f3d 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -124,12 +124,9 @@ local function customFilter(icons, unit, icon, ...) end local function style(self, unit) - self.colors = colors - self.menu = menu - - self:RegisterForClicks('AnyUp') - self:SetAttribute('type2', 'menu') + SecureUnitButton_OnLoad(self, unit, menu) + self.colors = colors self:SetScript('OnEnter', UnitFrame_OnEnter) self:SetScript('OnLeave', UnitFrame_OnLeave) -- 1.7.9.5