projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84ad4e3
)
libs/core: Renamed luci.util.create_dtable => luci.util.dtable
author
Steven Barth
<steven@midlink.org>
Mon, 28 Jul 2008 14:17:30 +0000
(14:17 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 28 Jul 2008 14:17:30 +0000
(14:17 +0000)
libs/core/luasrc/util.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/util.lua
b/libs/core/luasrc/util.lua
index 22f295d23f4613dbd5803fa9f3a7f24cb1bad1f1..bcd4ed1e059183ce156f4f30b0744f7970c1523f 100644
(file)
--- a/
libs/core/luasrc/util.lua
+++ b/
libs/core/luasrc/util.lua
@@
-378,11
+378,11
@@
end
--- Create a dynamic table which automatically creates subtables.
-- @return Dynamic Table
-function
create_
dtable()
+function dtable()
return setmetatable({}, { __index =
function(tbl, key)
return rawget(tbl, key)
- or rawget(rawset(tbl, key,
create_
dtable()), key)
+ or rawget(rawset(tbl, key, dtable()), key)
end
})
end