mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Bugfixes: Removed retail API calls, ran linting script and static analysis.
This commit is contained in:
@@ -306,7 +306,7 @@ end
|
||||
|
||||
function table.wipe(t)
|
||||
if type(t) ~= "table" then
|
||||
error(format("bad argument #1 to 'wipe' (table expected, got %s)", t ~= nil and type(t) or "no value"), 2)
|
||||
return t
|
||||
end
|
||||
|
||||
for k in pairs(t) do
|
||||
|
||||
@@ -96,7 +96,9 @@ function HookScript(frame, scriptName, handler)
|
||||
handler(this)
|
||||
end)
|
||||
else
|
||||
frame:SetScript(scriptName, handler)
|
||||
frame:SetScript(scriptName, function()
|
||||
handler(this)
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -112,11 +114,11 @@ function hooksecurefunc(a1, a2, a3)
|
||||
|
||||
local original_func = a1[a2]
|
||||
|
||||
a1[a2] = function(...)
|
||||
local original_return = {original_func(unpack(arg))}
|
||||
a3(unpack(arg))
|
||||
a1[a2] = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
|
||||
local r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 = original_func(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
|
||||
a3(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
|
||||
|
||||
return unpack(original_return)
|
||||
return r1, r2, r3, r4, r5, r6, r7, r8, r9, r10
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user