From 85bd17fc1d59bf7ee293e301b81e62fb4475f349 Mon Sep 17 00:00:00 2001 From: Pinya <800pin.ru@gmail.com> Date: Sun, 22 Jul 2018 22:25:58 +0300 Subject: [PATCH] update :anguished: --- ElvUI/Libraries/oUF/ouf.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ElvUI/Libraries/oUF/ouf.lua b/ElvUI/Libraries/oUF/ouf.lua index e400eb4..2747ff3 100644 --- a/ElvUI/Libraries/oUF/ouf.lua +++ b/ElvUI/Libraries/oUF/ouf.lua @@ -24,10 +24,10 @@ local function enableTargetUpdate(object) local total = 0 object:SetScript('OnUpdate', function() - if(not self.unit) then + if(not this.unit) then return - elseif(total > self.onUpdateFrequency) then - self:UpdateAllElements('OnUpdate') + elseif(total > this.onUpdateFrequency) then + this:UpdateAllElements('OnUpdate') total = 0 end