libs/uci: support custom initalizers in luci.model.uci.bind

This commit is contained in:
Jo-Philipp Wich 2009-10-27 21:38:15 +00:00
parent 99d425aeed
commit 09fa7f18c9

View file

@ -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