From 082dc318e4fb3c7da85611a580c40aa65394dbe8 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 26 Nov 2013 17:37:21 -0500 Subject: [PATCH] Add missing 'local' keyword on internal helper functions to prevent overwriting --- src/base/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/api.lua b/src/base/api.lua index 50f3dd94..0ba719b3 100755 --- a/src/base/api.lua +++ b/src/base/api.lua @@ -268,7 +268,7 @@ end end - function recurse(value) + local function recurse(value) if type(value) == "table" then table.foreachi(value, function(v) recurse(v) @@ -558,7 +558,7 @@ -- process all of the values, according to the data type local result = {} - function recurse(value) + local function recurse(value) if type(value) == "table" then table.foreachi(value, function (value) recurse(value)