libs/core: Renamed luci.util.create_dtable => luci.util.dtable
This commit is contained in:
parent
84ad4e3e21
commit
db4447af91
1 changed files with 2 additions and 2 deletions
|
@ -378,11 +378,11 @@ end
|
||||||
|
|
||||||
--- Create a dynamic table which automatically creates subtables.
|
--- Create a dynamic table which automatically creates subtables.
|
||||||
-- @return Dynamic Table
|
-- @return Dynamic Table
|
||||||
function create_dtable()
|
function dtable()
|
||||||
return setmetatable({}, { __index =
|
return setmetatable({}, { __index =
|
||||||
function(tbl, key)
|
function(tbl, key)
|
||||||
return rawget(tbl, key)
|
return rawget(tbl, key)
|
||||||
or rawget(rawset(tbl, key, create_dtable()), key)
|
or rawget(rawset(tbl, key, dtable()), key)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue