refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-09-06 22:06:36 +02:00
parent 8cb0b9bf3d
commit 18db3dbf89
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -67,7 +67,6 @@ do
function env.private.USE_ITEM.set(f) tab.USE_ITEM = f end
function env.private.CLICK_LINK.set(f) tab.CLICK_LINK = f end
function env.public.ACTIVE.get() return tab == active_tab end
p(tab)
tinsert(tab_info, tab)
end
end
+1 -1
View File
@@ -113,7 +113,7 @@ do
code = code .. [[
overflow)
if overflow ~= nil then error("Vararg overflow.") end
local n
local n = 0
repeat
]]
for i = MAXPARAMS - 1, 1, -1 do
+5 -1
View File
@@ -48,7 +48,11 @@ public.select = vararg(function(arg)
for _ = 1, arg[1] do
tremove(arg, 1)
end
return unpack(arg)
if getn(arg) == 0 then
return nil
else
return unpack(arg)
end
end)
public.join = _G.table.concat