Revert commit e260655496384706e425d84f762ff6a7ec7fd823
Adrian L Lange [01-29-10 - 21:33]
Revert commit e260655496384706e425d84f762ff6a7ec7fd823
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