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:
9297ef3
)
libs/core: make luci.util.spairs(), kspairs() and vspairs() return the sequential...
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 25 Dec 2012 02:28:20 +0000
(
02:28
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 25 Dec 2012 02:28:20 +0000
(
02:28
+0000)
libs/core/luasrc/util.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/util.lua
b/libs/core/luasrc/util.lua
index e285777c31960d383ece8fc64e9693963ad54020..da761e219ae960441f3c0ba13a2c929eb74b2cc0 100644
(file)
--- a/
libs/core/luasrc/util.lua
+++ b/
libs/core/luasrc/util.lua
@@
-4,9
+4,6
@@
LuCI - Utility library
Description:
Several common useful Lua functions
-FileId:
-$Id$
-
License:
Copyright 2008 Steven Barth <steven@midlink.org>
@@
-609,6
+606,7
@@
end
function _sortiter( t, f )
local keys = { }
+ local k, v
for k, v in pairs(t) do
keys[#keys+1] = k
end
@@
-620,7
+618,7
@@
function _sortiter( t, f )
return function()
_pos = _pos + 1
if _pos <= #keys then
- return keys[_pos], t[keys[_pos]]
+ return keys[_pos], t[keys[_pos]]
, _pos
end
end
end