summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-09 17:14:24 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-09 17:14:24 +0100
commit80cfdf19f3675f021aa0379af649f80abfeb555b (patch)
tree49f354ee822096872841077bf8124b38690999d7
parent42ea9108d73e0d1fb415892879c10dd37235c6b7 (diff)
downloadgitano-80cfdf19f3675f021aa0379af649f80abfeb555b.tar.gz
UTIL: Fix up deep_copy for memoisation
-rw-r--r--lib/gitano/util.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitano/util.lua b/lib/gitano/util.lua
index 1d497c0..f2db189 100644
--- a/lib/gitano/util.lua
+++ b/lib/gitano/util.lua
@@ -19,10 +19,10 @@ local function _deep_copy(t, memo)
for k, v in pairs(t) do
kk, vv = k, v
if type(k) == "table" then
- kk = _deep_copy(k)
+ kk = _deep_copy(k, memo)
end
if type(v) == "table" then
- vv = _deep_copy(v)
+ vv = _deep_copy(v, memo)
end
ret[kk] = vv
end