Add missing 'local' keyword on internal helper functions to prevent overwriting

This commit is contained in:
Jason Perkins 2013-11-26 17:37:21 -05:00
parent 446090b6d8
commit 082dc318e4

View File

@ -268,7 +268,7 @@
end end
end end
function recurse(value) local function recurse(value)
if type(value) == "table" then if type(value) == "table" then
table.foreachi(value, function(v) table.foreachi(value, function(v)
recurse(v) recurse(v)
@ -558,7 +558,7 @@
-- process all of the values, according to the data type -- process all of the values, according to the data type
local result = {} local result = {}
function recurse(value) local function recurse(value)
if type(value) == "table" then if type(value) == "table" then
table.foreachi(value, function (value) table.foreachi(value, function (value)
recurse(value) recurse(value)