From 0803f054530ae04ab4bb64cb61a89e0b8096d8ab Mon Sep 17 00:00:00 2001 From: p3lim Date: Tue, 7 Sep 2010 03:31:58 +0200 Subject: [PATCH] Add :ForceUpdate() --- oUF_Reputation.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oUF_Reputation.lua b/oUF_Reputation.lua index cc484c0..aa30f23 100644 --- a/oUF_Reputation.lua +++ b/oUF_Reputation.lua @@ -22,9 +22,16 @@ local function Path(self, ...) return (self.Reputation.Override or Update) (self, ...) end +local function ForceUpdate(element) + return Path(element.__owner, 'ForceUpdate', element.__owner.unit) +end + local function Enable(self, unit) local bar = self.Reputation if(bar) then + bar.__owner = self + bar.ForceUpdate = ForceUpdate + self:RegisterEvent('UPDATE_FACTION', Path) if(not bar:GetStatusBarTexture()) then -- 1.7.9.5