Commit 56cbe409 authored by Huangnan's avatar Huangnan

group.foreach fix

parent 612eb29e
function Auxiliary.PreloadUds() function Auxiliary.PreloadUds()
--require(lib) redirect
function require(str) function require(str)
dofile(str..".lua") dofile(str..".lua")
--[[local len = string.len(str) --[[local len = string.len(str)
...@@ -15,4 +17,14 @@ function Auxiliary.PreloadUds() ...@@ -15,4 +17,14 @@ function Auxiliary.PreloadUds()
end end
]]-- ]]--
end end
--Group.ForEach redirect
function Group.ForEach(group,func,...)
if aux.GetValueType(group)=="Group" and group:GetCount()>0 then
local d_group=group:Clone()
for tc in aux.Next(d_group) do
func(tc,...)
end
end
end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment