summaryrefslogtreecommitdiffhomepage
path: root/libs/uci/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-27 21:38:15 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-27 21:38:15 +0000
commit09fa7f18c925747c55d8ce09623a20d2df5a9563 (patch)
tree49a0e4ee672852e6e99126a71e19ca9e32603644 /libs/uci/luasrc/model
parent99d425aeedf5801a0ca8c6f741e591456bd1ab0e (diff)
libs/uci: support custom initalizers in luci.model.uci.bind
Diffstat (limited to 'libs/uci/luasrc/model')
-rw-r--r--libs/uci/luasrc/model/uci/bind.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/uci/luasrc/model/uci/bind.lua b/libs/uci/luasrc/model/uci/bind.lua
index 6f9060d224..84cfc773ff 100644
--- a/libs/uci/luasrc/model/uci/bind.lua
+++ b/libs/uci/luasrc/model/uci/bind.lua
@@ -45,6 +45,10 @@ function bind.section(self, stype)
inst.bind = self
inst.stype = stype
inst.sid = sid
+
+ if inst._init then
+ inst:_init(sid)
+ end
end
return x
end