NIU: More pages
[project/luci.git] / libs / uci / luasrc / model / uci.lua
index c927b4ca5ab0a48a956b8c41d00f78acbe61b1cd..66bd0a026ee55634a66ea2c2460158e7c546c48b 100644 (file)
@@ -58,7 +58,10 @@ function cursor_state()
 end
 
 
-local Cursor = getmetatable(cursor())
+inst = cursor()
+inst_state = cursor_state()
+
+local Cursor = getmetatable(inst)
 
 --- Applies UCI configuration changes
 -- @param configlist           List of UCI configurations