From ed6c6e761f757668e8434c80fdcc25e7edcc97d6 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 29 Jan 2010 22:33:56 +0100 Subject: [PATCH] Revert commit e260655496384706e425d84f762ff6a7ec7fd823 --- oUF_P3lim.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index 904a12e..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) @@ -331,6 +328,8 @@ local function style(self, unit) self.CPoints:SetPoint('RIGHT', self, 'LEFT', -9, 0) self.CPoints:SetTextColor(1, 1, 1) self.CPoints:SetJustifyH('RIGHT') + self.CPoints.unit = PlayerFrame.unit + self:RegisterEvent('UNIT_COMBO_POINTS', updateCombo) end if(unit == 'player') then -- 1.7.9.5