From e260655496384706e425d84f762ff6a7ec7fd823 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 29 Jan 2010 22:32:45 +0100 Subject: [PATCH] Revert commit f354bc68bdfa5be1451a81748545e04422f93d20 --- oUF_P3lim.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/oUF_P3lim.lua b/oUF_P3lim.lua index c7e1f3d..904a12e 100644 --- a/oUF_P3lim.lua +++ b/oUF_P3lim.lua @@ -124,9 +124,12 @@ local function customFilter(icons, unit, icon, ...) end local function style(self, unit) - SecureUnitButton_OnLoad(self, unit, menu) - self.colors = colors + self.menu = menu + + self:RegisterForClicks('AnyUp') + self:SetAttribute('type2', 'menu') + self:SetScript('OnEnter', UnitFrame_OnEnter) self:SetScript('OnLeave', UnitFrame_OnLeave) @@ -328,8 +331,6 @@ 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