Made lastPanel not useless
Darthpred [10-24-16 - 18:56]
Made lastPanel not useless
diff --git a/ElvUI_SLE/modules/sledatatexts/itemlevel.lua b/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
index a0abd83..3ed02ce 100644
--- a/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
+++ b/ElvUI_SLE/modules/sledatatexts/itemlevel.lua
@@ -45,6 +45,7 @@ local levelColors = {
local function OnEvent(self)
self.avgItemLevel, self.avgEquipItemLevel = T.GetAverageItemLevel()
self.text:SetFormattedText(displayString, ITEM_LEVEL_ABBR, T.floor(self.avgEquipItemLevel), T.floor(self.avgItemLevel))
+ lastPanel = self
end
local function ClearTooltip(Tooltip)
diff --git a/ElvUI_SLE/modules/sledatatexts/version.lua b/ElvUI_SLE/modules/sledatatexts/version.lua
index b7d2744..af0e450 100644
--- a/ElvUI_SLE/modules/sledatatexts/version.lua
+++ b/ElvUI_SLE/modules/sledatatexts/version.lua
@@ -3,10 +3,10 @@ local DT = E:GetModule('DataTexts')
local GAME_VERSION_LABEL = GAME_VERSION_LABEL
local displayString = '';
local lastPanel;
-local self = lastPanel
local function OnEvent(self, event, ...)
self.text:SetFormattedText(displayString, 'ElvUI v', E.version, SLE.version);
+ lastPanel = self
end
local function Click()