From 9bd207200bcfbab36cca83bd2ce830e97c2119ac Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 24 Jul 2014 22:31:26 +0400 Subject: [PATCH] Hook E:UpdateAll, seems working --- ElvUI_SLE/core/toolkit.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua index c3d196a..a9bbd18 100644 --- a/ElvUI_SLE/core/toolkit.lua +++ b/ElvUI_SLE/core/toolkit.lua @@ -44,9 +44,7 @@ function SLE:Print(msg) print(E["media"].hexvaluecolor..'S&L:|r', msg) end -E.UpdateAllSLE = E.UpdateAll -function E:UpdateAll() - E.UpdateAllSLE(self) +local function UpdateAll() BG:UpdateFrames() BG:RegisterHide() DTP:Update() @@ -63,4 +61,7 @@ function E:UpdateAll() CH:GMIconUpdate() M:TextWidth() I:UpdateFrame() -end \ No newline at end of file + + collectgarbage('collect'); +end +hooksecurefunc(E, "UpdateAll", UpdateAll) \ No newline at end of file -- 1.7.9.5