refactoring
This commit is contained in:
@@ -67,7 +67,6 @@ do
|
|||||||
function env.private.USE_ITEM.set(f) tab.USE_ITEM = f end
|
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.private.CLICK_LINK.set(f) tab.CLICK_LINK = f end
|
||||||
function env.public.ACTIVE.get() return tab == active_tab end
|
function env.public.ACTIVE.get() return tab == active_tab end
|
||||||
p(tab)
|
|
||||||
tinsert(tab_info, tab)
|
tinsert(tab_info, tab)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+1
-1
@@ -113,7 +113,7 @@ do
|
|||||||
code = code .. [[
|
code = code .. [[
|
||||||
overflow)
|
overflow)
|
||||||
if overflow ~= nil then error("Vararg overflow.") end
|
if overflow ~= nil then error("Vararg overflow.") end
|
||||||
local n
|
local n = 0
|
||||||
repeat
|
repeat
|
||||||
]]
|
]]
|
||||||
for i = MAXPARAMS - 1, 1, -1 do
|
for i = MAXPARAMS - 1, 1, -1 do
|
||||||
|
|||||||
+5
-1
@@ -48,7 +48,11 @@ public.select = vararg(function(arg)
|
|||||||
for _ = 1, arg[1] do
|
for _ = 1, arg[1] do
|
||||||
tremove(arg, 1)
|
tremove(arg, 1)
|
||||||
end
|
end
|
||||||
return unpack(arg)
|
if getn(arg) == 0 then
|
||||||
|
return nil
|
||||||
|
else
|
||||||
|
return unpack(arg)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
public.join = _G.table.concat
|
public.join = _G.table.concat
|
||||||
|
|||||||
Reference in New Issue
Block a user