From 18ea7e915c6b5783095d0f9f46161bee3bba483f Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Fri, 7 Aug 2009 19:41:38 +0200 Subject: [PATCH] Design change --- oUF_Reputation.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua index 7ee44ad..f787209 100644 --- a/oUF_Reputation.lua +++ b/oUF_Reputation.lua @@ -47,17 +47,17 @@ local function update(self, event, unit) end local function enable(self, unit) - local reputation = self.Reputation - if(reputation and unit == 'player') then - if(not reputation:GetStatusBarTexture()) then - reputation:SetStatusBarTexture([=[Interface\TargetingFrame\UI-StatusBar]=]) + local bar = self.Reputation + if(bar and unit == 'player') then + if(not bar:GetStatusBarTexture()) then + bar:SetStatusBarTexture([=[Interface\TargetingFrame\UI-StatusBar]=]) end self:RegisterEvent('UPDATE_FACTION', update) - if(reputation.Tooltip) then - reputation:EnableMouse() - reputation:SetScript('OnLeave', GameTooltip_OnLeave) + if(bar.Tooltip) then + bar:EnableMouse() + bar:SetScript('OnLeave', GameTooltip_OnLeave) end return true -- 1.7.9.5