diff --git a/ElvUI/Modules/Skins/Blizzard/Friends.lua b/ElvUI/Modules/Skins/Blizzard/Friends.lua index 49a1ecf..cd395b9 100644 --- a/ElvUI/Modules/Skins/Blizzard/Friends.lua +++ b/ElvUI/Modules/Skins/Blizzard/Friends.lua @@ -75,8 +75,8 @@ function LoadSkin() E:Point(tab.backdrop, "TOPLEFT", 3, -7) E:Point(tab.backdrop, "BOTTOMRIGHT", -2, -1) - tab:SetScript("OnEnter", function() S:SetModifiedBackdrop(this) end) - tab:SetScript("OnLeave", function() S:SetOriginalBackdrop(this) end) + tab:SetScript("OnEnter", S.SetModifiedBackdrop) + tab:SetScript("OnLeave", S.SetOriginalBackdrop) end S:HandleButton(FriendsFrameIgnorePlayerButton) diff --git a/ElvUI/Modules/Skins/Skins.lua b/ElvUI/Modules/Skins/Skins.lua index 4449454..5b6e49e 100644 --- a/ElvUI/Modules/Skins/Skins.lua +++ b/ElvUI/Modules/Skins/Skins.lua @@ -361,8 +361,8 @@ function S:HandleCloseButton(f, point, text) f.backdrop:SetPoint("BOTTOMRIGHT", -8, 8) f:SetHitRectInsets(6, 6, 7, 7) - HookScript(f, "OnEnter", function() S:SetModifiedBackdrop(this) end) - HookScript(f, "OnLeave", function() S:SetOriginalBackdrop(this) end) + HookScript(f, "OnEnter", S.SetModifiedBackdrop) + HookScript(f, "OnLeave", S.SetOriginalBackdrop) end if not text then text = "x" end if not f.text then