Created
November 1, 2012 02:00
-
-
Save tbergeron/3991160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function staff.callFunctionForEachEmployee(functionName, args) | |
if employee_instances then | |
table.foreach(employee_instances, function(i) | |
local employee = employee_instances[i] | |
if args then | |
if type(args) == "table" then | |
args = unpack(args) | |
end | |
end | |
employee(functionName, args) | |
end) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment