Quantcast

Revert commit f354bc68bdfa5be1451a81748545e04422f93d20

Adrian L Lange [01-29-10 - 21:32]
Revert commit f354bc68bdfa5be1451a81748545e04422f93d20
Filename
oUF_P3lim.lua
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