mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
getn(arg) -> arg.n
This commit is contained in:
@@ -66,7 +66,7 @@ local funcmsg = "expected function or member name"
|
||||
-- pickfirstset() - picks the first non-nil value and returns it
|
||||
|
||||
local function pickfirstset(...)
|
||||
for i=1,getn(arg) do
|
||||
for i=1,arg.n do
|
||||
if arg[i]~=nil then
|
||||
return arg[i]
|
||||
end
|
||||
@@ -124,7 +124,7 @@ local function callfunction(info, tab, methodtype, ...)
|
||||
info.type = tab.type
|
||||
|
||||
if type(method)=="function" then
|
||||
if getn(arg) > 0 then
|
||||
if arg.n > 0 then
|
||||
return method(info, unpack(arg))
|
||||
else
|
||||
return method(info)
|
||||
|
||||
Reference in New Issue
Block a user