Hook E:UpdateAll, seems working
Darthpred [07-24-14 - 18:31]
Hook E:UpdateAll, seems working
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